UNPKG

@rr0/time

Version:
22 lines 941 B
/** @import { Level2ComponentSpec } from "../component/Level2Component.mjs" */ export class Level2Second extends Level2Component { /** * If some digits are unspecified, an inferred seconds interval will be returned. * * @param {string} str * @param unit * @return {Level2Second | {start: Level2Second, end: Level2Second}} */ static fromString(str: string, unit?: import("../../calendar/index.mjs").CalendarUnit): Level2Second | { start: Level2Second; end: Level2Second; }; /** * @param {Level2ComponentSpec} spec The second value spec * @param {CalendarUnit} [unit] The second unit (calendarUnits.second by default) */ constructor(spec: Level2ComponentSpec, unit?: CalendarUnit); } import { Level2Component } from "../component/index.mjs"; import type { Level2ComponentSpec } from "../component/Level2Component.mjs"; //# sourceMappingURL=Level2Second.d.mts.map