北斗短报文通信服务平台
This commit is contained in:
13
app/middleware/utils/getTimes.js
Normal file
13
app/middleware/utils/getTimes.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// 返回时间对象
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user