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;