UNPKG

@z-utils/vue

Version:

zzy 工具库/vue

2 lines (1 loc) 282 B
"use strict";module.exports=function(t){function e(t){return t<10?"0"+t:t}"string"==typeof t&&(t=parseInt(t));var n=new Date(t),r=n.getFullYear(),u=n.getMonth()+1,o=n.getDate(),s=n.getHours(),g=n.getMinutes(),a=n.getSeconds();return r+"-"+e(u)+"-"+e(o)+" "+e(s)+":"+e(g)+":"+e(a)};