README
时间转换成指定格式日期
formats格式包括
- Y-m-d
- Y-m-d H:i:s
- Y年m月d日
- Y年m月d日 H时i分
- 等...
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. 等... ```javascript new Date(11111111111111).format('Y年m月d日 H时i分'); // 2322年02月06日 03时45分 ```
<script type="module">
import dateUnit from 'https://cdn.skypack.dev/date_unit';
</script>
formats格式包括
new Date(11111111111111).format('Y年m月d日 H时i分');
// 2322年02月06日 03时45分