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

LocalDateTime

Represents an instant capturing the date and the time, but not the timezone. Created LocalDateTime 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): LocalDateTime

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

Constructor Summary

Public Constructor
public

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

Member Summary

Public Members
public

day: *

public

hour: *

public

minute: *

public

month: *

public
public

second: *

public

year: *

Method Summary

Public Methods
public

toString(): *

Static Public Methods

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

Create a local date-time object from the given standard JavaScript Date and optional nanoseconds. Time zone offset component of the given date is ignored.

Params:

NameTypeAttributeDescription
standardDate global.Date

the standard JavaScript date to convert.

nanosecond Integer | number | undefined

the optional amount of nanoseconds.

Return:

LocalDateTime

new local date-time.

Public Constructors

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

Params:

NameTypeAttributeDescription
year Integer | number

the year for the new local date.

month Integer | number

the month for the new local date.

day Integer | number

the day for the new local date.

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 day: * source

public hour: * source

public minute: * source

public month: * source

public nanosecond: * source

public second: * source

public year: * source

Public Methods

public toString(): * source

Return:

*