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 • 280 B
/** * Return the current UTC instant as an ISO Instant string. * * - Uses nowInstant() to get current UTC time. * * @returns ISO Instant string (e.g. "2024-02-29T00:00:00Z") * * @example getUtcNow() // "2024-02-29T00:00:00Z" */ export declare function getUtcNow(): string;