ts-py-datetime
Version:
Datetime handling the python way (or as close as possible), now with TypeScript
11 lines (10 loc) • 401 B
JavaScript
/**
* The smallest year number allowed in date and datetime objects, equal to 100.
*/
export const MINYEAR = 100;
/** The largest year number allowed in date and datetime objects, equal to 9999. */
export const MAXYEAR = 9999;
/** MINYEAR translated to it's ordinal day. */
export const MINYEAR_ORDINAL = 36160;
/** MAXYEAR translated to it's ordinal day. */
export const MAXYEAR_ORDINAL = 3652059;