1.0.0 • Published 5 months ago
lam-util v1.0.0
lam-util
介绍
柏林的工具方法集
安装教程
npm i lam-util
使用案例
- getYMDHMS 根据时间戳获取年月日等信息
const time = getYMDHMS(1701502230000)
console.log(time); // 2023-12-02 15:30:30
const time1 = getYMDHMS(1701502230000, 'cn')
console.log(time1); // 2023年12月2日15时30分30秒
1.0.0
5 months ago