Skip to main content
Module

x/neo4j_driver_lite/mod.ts>DateTime

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

Represents an instant capturing the date, the time and the timezone identifier. Created {@ DateTime} objects are frozen with Object.freeze() in constructor and thus immutable.

Constructors

new
DateTime(
year: T,
month: T,
day: T,
hour: T,
minute: T,
second: T,
nanosecond: T,
timeZoneOffsetSeconds?: T,
timeZoneId?: string | null,
)

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
optional
timeZoneId: string
readonly
optional
timeZoneOffsetSeconds: T
readonly
year: T

Methods

private
_toUTC(): number
toStandardDate(): StandardDate

Convert date to standard JavaScript Date.

Static Methods

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

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