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;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)