feat: scripts

This commit is contained in:
2025-04-05 16:57:26 +08:00
parent bd4fe63cdc
commit 3e996ffab3
62 changed files with 4905 additions and 0 deletions

12
scripts/date.js Normal file
View File

@@ -0,0 +1,12 @@
#! /usr/bin/env runjs
var TimeZone = java.util.TimeZone;
var SimpleDateFormat = java.text.SimpleDateFormat;
var main = () => {
var sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
println(sdf.format(new java.util.Date()));
};
main();