UNPKG

@burglekitt/gmt

Version:

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

14 lines (13 loc) 430 B
/** * Return the PlainTime portion extracted from an ISO PlainDateTime string. * * - Extracts time components from a PlainDateTime. * - Returns "" for invalid input. * * @param value ISO PlainDateTime string * @returns ISO PlainTime string or "" on invalid input * * @example chopDate("2024-02-29T12:34:56") // "12:34:56" * @example chopDate("invalid") // "" */ export declare function chopDate(value: string): string;