标签:时间 second result min for date mes gets 时间戳
function timestampToTime(timestamp) {
S = timestamp,
T = new Date(1E3 * S),
Format = function(Q){return Q < 10 ? ‘0‘ + Q : Q},
Result = Format(T.getFullYear()) + ‘-‘ + Format(T.getMonth() + 1) + ‘-‘ + Format(T.getDate()) + ‘ ‘ + Format(T.getHours()) + ‘:‘ + Format(T.getMinutes()) + ‘:‘ + Format(T.getSeconds());
return Result;
}
标签:时间 second result min for date mes gets 时间戳
原文地址:https://www.cnblogs.com/yyhhblog/p/10670325.html