UNPKG

@rr0/time

Version:
88 lines 2.33 kB
/** * @template Y extends Level1Year * @template M extends Level1Month * @template D extends Level1Day * @template H extends Level1Hour * @template M extends Level1Minute * @template S extends Level1Second * @template Z extends Level1Timeshift */ export class Level1DateParser<Y, M, D, H, S, Z> extends EDTFParser<any> { /** * @readonly * @type {string} */ static readonly yearGroup: string; /** * @readonly * @type {string} */ static readonly monthGroup: string; /** * @readonly * @type {string} */ static readonly dayGroup: string; /** * @readonly * @type {string} */ static readonly hourGroup: string; /** * @readonly * @type {string} */ static readonly minuteGroup: string; /** * @readonly * @type {string} */ static readonly secondGroup: string; /** * @readonly * @type {string} */ static readonly timeshiftGroup: string; /** * @param {string} [prefix] A prefix for the group names, if any. * @return string */ static format(prefix?: string): string; constructor(format?: string); parseGroups(groups: any): { year: Level1Year | { start: Level1Year; end: Level1Year; }; month: Level1Month | { start: Level1Month; end: Level1Month; }; day: Level1Day | { start: Level1Day; end: Level1Day; }; hour: Level1Hour | { start: Level1Hour; end: Level1Hour; }; minute: Level1Minute | { start: Level1Minute; end: Level1Minute; }; second: Level1Second | { start: Level1Second; end: Level1Second; }; timeshift: Level1Timeshift; }; } import { EDTFParser } from "../../EDTFParser.mjs"; import { Level1Year } from "../year/index.mjs"; import { Level1Month } from "../month/index.mjs"; import { Level1Day } from "../day/Level1Day.mjs"; import { Level1Hour } from "../hour/index.mjs"; import { Level1Minute } from "../minute/index.mjs"; import { Level1Second } from "../second/index.mjs"; import { Level1Timeshift } from "../timeshift/index.mjs"; //# sourceMappingURL=Level1DateParser.d.mts.map