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.

11 lines • 320 B
/** * Return the current month from UTC as a zero-padded string. * * - Uses nowInstant() converted to UTC zoned date time. * - Returns zero-padded string to 2 digits. * * @returns current month string (zero-padded to 2 digits) * * @example getUtcMonth() // "02" */ export declare function getUtcMonth(): string;