Packages
A web application in pursuit of meaning in life.
Retired package: Complete rewrite, scratch old versions
Current section
Files
Jump to
Current section
Files
assets/node_modules/mout/src/date/quarter.js
define(function () {
/**
* gets date quarter
*/
function quarter(date){
var month = date.getMonth();
if (month < 3) return 1;
if (month < 6) return 2;
if (month < 9) return 3;
return 4;
}
return quarter;
});