1.0.1 • Published 3 years ago
skyfather-data v1.0.1
skyfather-date
⬇️ 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 | 秒 |