@burglekitt/gmt
Version:
Temporal-based date and time utilities with timezone support and polyfill integration
12 lines (11 loc) • 422 B
TypeScript
/**
* Return the microsecond (0-999) for a given ISO 8601 time string.
*
* @param value ISO time string
* @returns Microsecond (000-999) or "" on invalid input
*
* @example parseMicrosecondFromTime("12:30:45.123") // "123"
* @example parseMicrosecondFromTime("12:30:45.000") // "000"
* @example parseMicrosecondFromTime("invalid") // ""
*/
export declare function parseMicrosecondFromTime(value: string): string;