优化页面
This commit is contained in:
13
unpackage/dist/dev/mp-weixin/components/TimeFormatting.js
vendored
Normal file
13
unpackage/dist/dev/mp-weixin/components/TimeFormatting.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
function TimeFormatting(timestamp) {
|
||||
const date = new Date(timestamp * 1e3);
|
||||
date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(date.getDate()).padStart(2, "0");
|
||||
const hour = String(date.getHours()).padStart(2, "0");
|
||||
const minute = String(date.getMinutes()).padStart(2, "0");
|
||||
String(date.getSeconds()).padStart(2, "0");
|
||||
return `${month}-${day} ${hour}:${minute}`;
|
||||
}
|
||||
exports.TimeFormatting = TimeFormatting;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/TimeFormatting.js.map
|
||||
Reference in New Issue
Block a user