Home Reference Source
import {Duration} from 'neo4j-driver/lib/v1/temporal-types.js'
public class | source

Duration

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.

Constructor Summary

Public Constructor
public

constructor(months: Integer | number, days: Integer | number, seconds: Integer | number, nanoseconds: Integer | number)

Member Summary

Public Members
public

days: *

public

months: *

public
public

seconds: *

Method Summary

Public Methods
public

toString(): *

Public Constructors

public constructor(months: Integer | number, days: Integer | number, seconds: Integer | number, nanoseconds: Integer | number) source

Params:

NameTypeAttributeDescription
months Integer | number

the number of months for the new duration.

days Integer | number

the number of days for the new duration.

seconds Integer | number

the number of seconds for the new duration.

nanoseconds Integer | number

the number of nanoseconds for the new duration.

Public Members

public days: * source

public months: * source

public nanoseconds: * source

public seconds: * source

Public Methods

public toString(): * source

Return:

*