get-nowadays
v1.0.2
Published
getWeek getMonth getQuarter getHalfYear getYear
Downloads
3
Readme
Get timerange by the certain time
Installation
npm install get-nowadays -S
Usage
import _T from 'get-nowadays';
// get timerange by today
_T.getWeek();
_T.getMonth();
_T.getQuarter();
_T.getHalfYear();
_T.getYear();
// get time range by any day
const date = new Date('2019-01-29');
_T.getWeek(date);
_T.getMonth(date);
_T.getQuarter(date);
_T.getHalfYear(date);
_T.getYear(date);