1.0.2 • Published 2 years ago
formattimezhang v1.0.2
格式化时间戳的自定模块 // 调用如下: // var sjc = 1577951790;//时间戳 // console.log(time.formatTime(sjc,'Y/M/D h:m:s'));//转换为日期:2020/01/01 01:01:01 // console.log(time.formatTime(sjc, 'h:m'));//转换为日期:03:03
格式化时间戳的自定模块 // 调用如下: // var sjc = 1577951790;//时间戳 // console.log(time.formatTime(sjc,'Y/M/D h:m:s'));//转换为日期:2020/01/01 01:01:01 // console.log(time.formatTime(sjc, 'h:m'));//转换为日期:03:03