UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

10 lines • 617 B
import { Temporal } from "./temporal.js"; /** * The duration's seconds plus its sub-second fields as an exact decimal string. * * Summed in bigint nanoseconds, not float seconds: Temporal allows seconds up to 2^53 - 1 with 9 * fraction digits (IsValidDuration), which a float cannot hold. ECMA-402 Intl.NumberFormat accepts * a decimal string and formats it without converting to a Number (ToIntlMathematicalValue). * Returns "0", never "-0", for a zero amount, so a negative duration's zero seconds renders as 0. */ export declare function exactSeconds(duration: Temporal.Duration): Intl.StringNumericLiteral;