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