UNPKG

@kermank/nldp

Version:

A modular date/time parser for converting natural language into dates and times

12 lines 459 B
export interface TimeComponents { hours: number; minutes: number; seconds: number; offsetMinutes: number; } export type TimeComponentStrings = Record<keyof TimeComponents, string>; export declare function parseTimeString(timeStr: string, options?: { allow12Hour?: boolean; }): TimeComponents | null; export declare function timeComponentsToString(components: TimeComponents): TimeComponentStrings; //# sourceMappingURL=time-parser.d.ts.map