UNPKG

@rr0/time

Version:
57 lines 1.81 kB
/** * @template Y extends Level1Component = Level1Year * @template MM extends Level1Component = Level1Month * @template D extends Level1Component = Level1Day * @template H extends Level1Component = Level1Hour * @template M extends Level1Component = Level1Minute * @template S extends Level1Component = Level1Second * @template Z extends Level1Component = Level1Timeshift */ export class Level0Factory<Y, MM, D, H, M, S, Z> extends LevelFactory<any, any, any, any, any, any, any> { /** * * @param {TimeUnits} units */ constructor(units: TimeUnits); /** * @param {number} value * @return Y */ newYear(value: number): Level0Year; /** * @param {number} value * @return MM */ newMonth(value: number): Level0Month; /** * @param {number} value * @return D */ newDay(value: number): Level0Day; /** * @param {number} value * @return H */ newHour(value: number): Level0Hour; /** * @param {number} value * @return M */ newMinute(value: number): Level0Minute; /** * @param {number} value * @return S */ newSecond(value: number): Level0Second; } export const level0Factory: Level0Factory<any, any, any, any, any, any, any>; export const level0DurationFactory: Level0Factory<any, any, any, any, any, any, any>; import { LevelFactory } from "../LevelFactory.mjs"; import { Level0Year } from "./year/index.mjs"; import { Level0Month } from "./month/index.mjs"; import { Level0Day } from "./day/index.mjs"; import { Level0Hour } from "./hour/index.mjs"; import { Level0Minute } from "./minute/index.mjs"; import { Level0Second } from "./second/index.mjs"; import { TimeUnits } from "../calendar/unit/TimeUnits.mjs"; //# sourceMappingURL=Level0Factory.d.mts.map