@rr0/time
Version:
EDTF parsing
22 lines • 831 B
text/typescript
export class Level2Month extends Level2Component {
/**
* If some digits are unspecified, an inferred months interval will be returned.
*
* @param {string} str
* @return {Level2Month | {start: Level2Month, end: Level2Month}}
*/
static fromString(str: string): Level2Month | {
start: Level2Month;
end: Level2Month;
};
/**
* @param {Level2ComponentSpec} spec The month value spec.
* @param [unit] The month unit
*/
constructor(spec: Level2ComponentSpec, unit?: CalendarUnit);
toString(): string;
}
import { Level2Component } from "../component/Level2Component.mjs";
import type { Level2ComponentSpec } from "../component/Level2Component.mjs";
import { CalendarUnit } from "../../calendar/unit/CalendarUnit.mjs";
//# sourceMappingURL=Level2Month.d.mts.map