Skip to main content
Module

x/neo4j_driver_lite/mod.ts>Duration

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

Represents an ISO 8601 duration. Contains both date-based values (years, months, days) and time-based values (seconds, nanoseconds). Created Duration objects are frozen with Object.freeze() in constructor and thus immutable.

Constructors

new
Duration(
months: T,
days: T,
seconds: T,
nanoseconds: T,
)

Type Parameters

optional
T extends NumberOrInteger = Integer

Properties

readonly
days: T
readonly
months: T
readonly
nanoseconds: T
readonly
seconds: T