Skip to main content
Module

x/neo4j_lite_client/mod.ts>DateTime

Unofficial Neo4j Driver for Deno
Latest
class DateTime
Re-export
import { DateTime } from "https://deno.land/x/neo4j_lite_client@4.4.6/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

toString(): string

Static Methods

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

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