@burglekitt/gmt
Version:
Temporal-based date and time utilities with timezone support and polyfill integration
14 lines (13 loc) • 523 B
TypeScript
/**
* Return the nanosecond (0-999) from a zoned datetime string.
*
* - Returns zero-padded string for nanosecond.
* - Returns "" for invalid input.
*
* @param value ISO zoned datetime string (e.g., "2024-03-15T14:30:45.123456789+00:00[UTC]")
* @returns Nanosecond (000-999) or "" on invalid input
*
* @example parseNanosecondFromZoned("2024-03-15T14:30:45.123+00:00[UTC]") // "123"
* @example parseNanosecondFromZoned("invalid") // ""
*/
export declare function parseNanosecondFromZoned(value: string): string;