kungeek-dateformat
v1.0.2
Published
a plugin which can show datetime
Downloads
10
Readme
#描述#
这是一个时间日期格式转换插件
#如何使用#
import dateformat from 'kungeek-dateformat';
dateformat((new Date()).getTime(),'^',':'); // 2019^02^13 15:43:30
dateformat((new Date()).getTime(),'-',':'); // 2019-02-13 15:43:30
dateformat((new Date()).getTime(),'-'); // 2019-02-13
dateformat((new Date()).getTime(),null,':'); // 15:44:11