Files
bd-short-message-platform/app/middleware/utils/getTimes.js

13 lines
307 B
JavaScript
Raw Normal View History

2026-03-27 17:51:58 +08:00
// 返回时间对象
module.exports = () => {
let now = new Date(),
times = {
year: now.getFullYear(),
month: now.getMonth() + 1,
day: now.getDate(),
hour: now.getHours(),
minute: now.getMinutes(),
second: now.getSeconds()
};
return times;
};