Date utilities
Return the current season of a Date object.
const getSeason = require('nyks/date/getSeason');
getSeason(new Date('2016-04-01')); // return "spring";
getSeason(new Date('2016-07-01')); // return "summer";
getSeason(new Date('2016-10-01')); // return "autumn";
getSeason(new Date('2016-12-31')); // return "winter";
Extended mout/date/strftime.
const strftime = require('nyks/date/strftime');
let date = new Date('2016-01-01');
strftime(date, '%d') // return "01", like mout strftime would do
/*
The two new parametters are :
* %v : Return the first day of the Date() Week.
* %E : Return the Season of the Date().
*/
strftime(date, '%E') // return "winter";