date-gather

1.0.12 • Public • Published

dateGather

日期集合(今天,昨天,星期一,星期天,本月第一天,本月最后一天)

Usage

import dateGather from 'date-gather';
 
/*
    dateGather.fullToday // 今天
    dateGather.fullYesterday // 昨天 
    dateGather.fullMonday // 星期一
    dateGather.fullSunday // 星期天
    dateGather.fullStartOfMonth // 本月第一天
    dateGather.fullEndOfMonth // 本月最后一天
 
    dateGather.getFullDate(1501314383824); // 得到 2017-07-29
*/
 

Package Sidebar

Install

npm i date-gather

Weekly Downloads

1

Version

1.0.12

License

ISC

Last publish

Collaborators

  • yangjunhua