H5端齐采药项目,uniapp框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
383 B

function timesfm(num){
let now=new Date(num)
let n=now.getFullYear()
let y=now.getMonth()+1
let r =now.getDate();
let s=now.getHours()>=10?now.getHours():0+''+now.getHours();
let f=now.getMinutes()>=10?now.getMinutes():0+''+now.getMinutes();
let m=now.getSeconds()>=10?now.getSeconds():0+''+now.getSeconds();
return n+'-'+y+'-'+r+' '+s+':'+f+':'+m
}
module.exports = timesfm;