Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function temporalUtil.durationToIsoString
import { temporalUtil } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/index.ts";
const { durationToIsoString } = temporalUtil;

Format given duration to an ISO 8601 string.

Parameters

months: NumberOrInteger | string

the number of months.

days: NumberOrInteger | string

the number of days.

seconds: NumberOrInteger | string

the number of seconds.

nanoseconds: NumberOrInteger | string

the number of nanoseconds.

Returns

string

ISO string that represents given duration.