Home Reference Source
import {LocalTime} from 'neo4j-driver/lib/v1/temporal-types.js'
public class | source

LocalTime

Represents an instant capturing the time of day, but not the date, nor the timezone. Created LocalTime objects are frozen with Object.freeze() in constructor and thus immutable.

Static Method Summary

Static Public Methods
public static

fromStandardDate(standardDate: global.Date, nanosecond: Integer | number | undefined): LocalTime

Create a local time object from the given standard JavaScript Date and optional nanoseconds.

Constructor Summary

Public Constructor
public

constructor(hour: Integer | number, minute: Integer | number, second: Integer | number, nanosecond: Integer | number)

Member Summary

Public Members
public

hour: *

public

minute: *

public
public

second: *

Method Summary

Public Methods
public

toString(): *

Static Public Methods

public static fromStandardDate(standardDate: global.Date, nanosecond: Integer | number | undefined): LocalTime source

Create a local time object from the given standard JavaScript Date and optional nanoseconds. Year, month, day and time zone offset components of the given date are ignored.

Params:

NameTypeAttributeDescription
standardDate global.Date

the standard JavaScript date to convert.

nanosecond Integer | number | undefined

the optional amount of nanoseconds.

Return:

LocalTime

new local time.

Public Constructors

public constructor(hour: Integer | number, minute: Integer | number, second: Integer | number, nanosecond: Integer | number) source

Params:

NameTypeAttributeDescription
hour Integer | number

the hour for the new local time.

minute Integer | number

the minute for the new local time.

second Integer | number

the second for the new local time.

nanosecond Integer | number

the nanosecond for the new local time.

Public Members

public hour: * source

public minute: * source

public nanosecond: * source

public second: * source

Public Methods

public toString(): * source

Return:

*