1.0.0 • Published 2 years ago
webopenzhaoritian-data v1.0.0
⬇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')
1.0.0
2 years ago