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.

13 lines • 508 B
/** * Return the current microsecond using the system timeZone. * * - Uses nowPlainDateTimeISO() to get current microsecond in system timezone. * - Returns zero-padded string to 3 digits (e.g., "456"). * - Returns "" when system timezone is unavailable. * * @returns current microsecond string (zero-padded to 3 digits) or "" on invalid * * @example getMicrosecond() // "000" * @example getMicrosecond() // "" (when system timeZone unavailable) */ export declare function getMicrosecond(): string;