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.

9 lines • 599 B
/** 2^48 ms: one past the last 48-bit Unix millisecond, the exclusive end of an identifier range. */ export declare const UNIX_MS_48_END: bigint; /** * The core of `uuidV7TimestampPrefix` and `ulidTimestampPrefix`: parse an instant, floor it to * the millisecond and range-check it against the 48-bit Unix millisecond field. Returns `null` * for an invalid instant, one before 1970-01-01, or one past 2^48 ms. The result may be * 2^48 itself, which no identifier carries; a caller that cannot write it rejects it. */ export declare function prefixMilliseconds(isoString: string): bigint | null;