@burglekitt/gmt
Version:
Temporal-based date and time utilities with timezone support and polyfill integration
14 lines (13 loc) • 432 B
TypeScript
/**
* Return the PlainDate portion extracted from an ISO PlainDateTime string.
*
* - Extracts date components from a PlainDateTime.
* - Returns "" for invalid input.
*
* @param value ISO PlainDateTime string
* @returns ISO PlainDate string or "" on invalid input
*
* @example chopTime("2024-02-29T12:34:56") // "2024-02-29"
* @example chopTime("invalid") // ""
*/
export declare function chopTime(value: string): string;