UNPKG

@rr0/time

Version:
32 lines 949 B
/** * @template Y extends Level0Year * @template M extends Level0Month * @template D extends Level0Day * @template H extends Level0Hour * @template M extends Level0Minute * @template S extends Level0Second * @template Z extends Level0Timeshift */ export class Level0DateParser<Y, M, D, H, S, Z> extends EDTFParser<any> { /** * &param {string} prefix to distinguish dates fields in intervals, typically. * @return string The RegExp pattern. */ static format(prefix?: string): string; constructor(); /** * @protected * @param {string} str An EDTF level 0 string. * @return {{year: Y, month: M, day: D, hour: H, minute: M, timeshift: Z}} */ protected parse(str: string): { year: Y; month: M; day: D; hour: H; minute: M; timeshift: Z; }; } import { EDTFParser } from "../../EDTFParser.mjs"; //# sourceMappingURL=Level0DateParser.d.mts.map