myp-timetool

0.1.0 • Public • Published

安装

npm install myp-moment

导入

const myp = require('myp-moment')

格式化时间

const time = myp.dataFormat(new Date())

获取当前时间的前几天或者后几天

const day = getDay(3) //三天后 const day = getDay(-3) //三天前

Readme

Keywords

Package Sidebar

Install

npm i myp-timetool

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

1.89 kB

Total Files

5

Last publish

Collaborators

  • mayoupeng