1.0.4 • Published 5 years ago
date_unit v1.0.4
时间转换成指定格式日期
formats格式包括 1. Y-m-d 2. Y-m-d H:i:s 3. Y年m月d日 4. Y年m月d日 H时i分 5. 等...
new Date(11111111111111).format('Y年m月d日 H时i分');
// 2322年02月06日 03时45分
formats格式包括 1. Y-m-d 2. Y-m-d H:i:s 3. Y年m月d日 4. Y年m月d日 H时i分 5. 等...
new Date(11111111111111).format('Y年m月d日 H时i分');
// 2322年02月06日 03时45分