From c0235430e9f15cb49be5fdc719aeebed4b3e61c9 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Tue, 7 Oct 2025 18:18:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20scripts/index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/index.js diff --git a/scripts/index.js b/scripts/index.js new file mode 100644 index 0000000..5fbd9a8 --- /dev/null +++ b/scripts/index.js @@ -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}`);