UNPKG

ts-py-datetime

Version:

Datetime handling the python way (or as close as possible), now with TypeScript

5 lines (4 loc) 326 B
export declare const TimedeltaIntervals: readonly ["weeks", "days", "hours", "minutes", "seconds", "milliseconds"]; export type TimedeltaInterval = (typeof TimedeltaIntervals)[number]; export type TimedeltaParams = Partial<Record<TimedeltaInterval, number>>; export declare const toSeconds: Record<TimedeltaInterval, number>;