UNPKG

@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.

9 lines • 377 B
/** * The service date as canonical "YYYY-MM-DD", or null. Never throws. * * @example gtfsServiceDateOf("20240130") // "2024-01-30" * @example gtfsServiceDateOf("2024-01-30") // "2024-01-30" * @example gtfsServiceDateOf("20240230") // null * @example gtfsServiceDateOf("+002024-01-30") // null */ export declare function gtfsServiceDateOf(value: unknown): string | null;