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

The day.

public

hour: Integer | number

The hour.

public

minute: Integer | number

The minute.

public

month: Integer | number

The month.

public

nanosecond: Integer | number

The nanosecond.

public

second: Integer | number

The second.

public

year: Integer | number

The year.

Static Public Methods

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

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

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

The day.

public hour: Integer | number source

The hour.

public minute: Integer | number source

The minute.

public month: Integer | number source

The month.

public nanosecond: Integer | number source

The nanosecond.

public second: Integer | number source

The second.

public year: Integer | number source

The year.