webopenzhaoritian-data
v1.0.0
Published
> npm i webopenfather-date
Readme
⬇Install
npm i webopenfather-date
Usage
const wofDate = require('webopenfather-date')
console.log(wofDate.format('Y-m-d H:i:s'))
console.log(wofDate.format('Y/m/d'))
console.log(wofDate.format('Y/m/d H:i:s'))
param
| keywords | desc |
| ---- | ---- |
| Y | 年 |
| m | 月 |
| d | 日 |
| H | 时 |
| i | 分 |
| s | 秒 |
语法:wofDate.format('随意组合')
举个栗子
wofDate.format('YmdHis')
wofDate.format('Y-m-d H:i:s')