UNPKG

chronoshift

Version:

A tiny library for shifting time with timezones

13 lines 548 B
import { Duration } from '../duration/duration'; import { Timezone } from '../timezone/timezone'; export declare function parseSQLDate(type: string, v: string): Date; export declare function parseISODate(date: string, timezone?: Timezone | null): Date | undefined; export interface IntervalParse { computedStart: Date; computedEnd: Date; start?: Date; end?: Date; duration?: Duration; } export declare function parseInterval(str: string, timezone?: Timezone, now?: Date): IntervalParse; //# sourceMappingURL=date-parser.d.ts.map