@northguild/gmt
Version:
Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.
13 lines • 429 B
TypeScript
/**
* 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;