2.2.2 • Published 4 years ago
aequirys v2.2.2
Aequirys is a perennial calendrical system based on the International Fixed Calendar°. A year is 26 months and a Year Day (plus a Leap Day on leap years). Each month is 14 days long. The months are denoted by the letters of the English alphabet.
Install
$ npm i aequirys
Usage
const Aequirys = require('./aequirys');
// Create an Aequiryean date
const greg = new Date(2018, 10, 9);
const aeq = new Aequirys(greg);
// Get the nth day of the year
aeq.n; // 313
// Get the year, month, and date
aeq.year; // 2018
aeq.month; // W
aeq.date; // 5
// Date display options
aeq.display('DDMMYY'); // '05W18'
aeq.display('YYMMDD'); // '18W05'
aeq.display('YYDDMM'); // '1805W'
aeq.display('DDMMYYYY') // '05W2018'
aeq.display('MMDDYYYY') // 'W052018'
aeq.display('YYYYDDMM') // '201805W'
aeq.display('YYYYMMDD') // '2018W05'