Files
tk-mini-program/unpackage/dist/dev/mp-weixin/components/DifferenceArray.js
pengxiaolong e464d99af5 优化页面
2025-06-17 22:04:18 +08:00

9 lines
349 B
JavaScript

"use strict";
function DifferenceArray(targetTimestamp) {
const now = Date.now() / 1e3;
const diffHours = Math.ceil((targetTimestamp - now) / 3600);
return Array.from({ length: diffHours }, (_, i) => String(i + 1));
}
exports.DifferenceArray = DifferenceArray;
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/DifferenceArray.js.map