Home Reference Source
import {LocalTime} from 'neo4j-driver/lib/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 LocalTime 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: Integer | number

The hour.

public

minute: Integer | number

The minute.

public

nanosecond: Integer | number

The nanosecond.

public

second: Integer | number

The second.

Static Public Methods

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

Create a LocalTime 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 LocalTime.

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: Integer | number source

The hour.

public minute: Integer | number source

The minute.

public nanosecond: Integer | number source

The nanosecond.

public second: Integer | number source

The second.