UNPKG

@date-vir/duration

Version:

Durations units an utils for date-vir.

56 lines (55 loc) 1.43 kB
/** * Names of all months in English. * * @category Unit */ export declare enum MonthName { January = "January", February = "February", March = "March", April = "April", May = "May", June = "June", July = "July", August = "August", September = "September", October = "October", November = "November", December = "December" } /** * All English month names in order. * * @category Unit */ export declare const orderedMonthNames: readonly [MonthName.January, MonthName.February, MonthName.March, MonthName.April, MonthName.May, MonthName.June, MonthName.July, MonthName.August, MonthName.September, MonthName.October, MonthName.November, MonthName.December]; /** * A type for all valid month numbers. (1-12) * * @category Unit */ export type MonthNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; /** * Bounds for valid month numbers. * * @category Internal */ export declare const monthNumberBounds: { readonly min: 1; readonly max: 12; }; /** * A type for all valid days in a month. (1-31) * * @category Unit */ export type DayOfMonth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31; /** * Bounds for valid day of the month numbers. * * @category Internal */ export declare const dayOfMonthBounds: { readonly min: 1; readonly max: 31; };