quarter
v1.0.0
Published
Get the quarter of the year a date is in
Downloads
4
Maintainers
Readme
quarter
Get the quarter of the year a date is in
Install
$ npm install --save quarter
Usage
var quarter = require('quarter');
quarter();
//=> 2
quarter(new Date('July 20, 1950'));
//=> 3
API
quarter(date)
date
Default: Current date
Type: instance of Date
License
MIT © Arthur Verschaeve