1
0

chore: 添加 scripts/index.js

This commit is contained in:
2025-10-07 18:18:23 +08:00
parent 81a99380fe
commit c0235430e9

9
scripts/index.js Normal file
View File

@@ -0,0 +1,9 @@
let date = new Date();
let year = date.getFullYear();
let month = String(date.getMonth() + 1).padStart(2, '0');
let day = String(date.getDate()).padStart(2, '0');
let hour = String(date.getHours()).padStart(2, '0');
let minute = String(date.getMinutes()).padStart(2, '0');
let second = String(date.getSeconds()).padStart(2, '0');
console.info(`${year}-${month}-${day} ${hour}:${minute}:${second}`);