Skip to main content
Module

x/neo4j_driver_lite/mod.ts>LocalDateTime

Neo4j Bolt driver for JavaScript
Go to Latest
class LocalDateTime
Re-export
import { LocalDateTime } from "https://deno.land/x/neo4j_driver_lite@5.14.0-alpha01/mod.ts";

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.

Constructors

new
LocalDateTime(
year: T,
month: T,
day: T,
hour: T,
minute: T,
second: T,
nanosecond: T,
)

Type Parameters

optional
T extends NumberOrInteger = Integer

Properties

readonly
day: T
readonly
hour: T
readonly
minute: T
readonly
month: T
readonly
nanosecond: T
readonly
second: T
readonly
year: T

Methods

toStandardDate(): StandardDate

Convert date to standard JavaScript Date.

Static Methods

fromStandardDate(standardDate: StandardDate, nanosecond?: NumberOrInteger): LocalDateTime<number>

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