UNPKG

@burglekitt/gmt

Version:

Temporal-based date and time utilities with timezone support and polyfill integration

14 lines (13 loc) 442 B
/** * Return the day of month (1-31) from a UTC datetime string. * * - Returns zero-padded string for day. * - Returns "" for invalid input. * * @param value ISO UTC datetime string (e.g., "2024-03-17T14:30:45Z") * @returns Day (01-31) or "" on invalid input * * @example parseDayFromUtc("2024-03-17T14:30:45Z") // "17" * @example parseDayFromUtc("invalid") // "" */ export declare function parseDayFromUtc(value: string): string;