aboutsummaryrefslogtreecommitdiff
path: root/deno/base/date.ts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-14 01:21:11 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-14 02:53:17 +0800
commit4f47b123f26d356661702b3d77c5c246be8620d0 (patch)
treeaab52a08c3544b7514d24d68e7127f9aaba76057 /deno/base/date.ts
parent0ddd1dc07f7d00723933d832562497af23dce225 (diff)
downloadcrupest-4f47b123f26d356661702b3d77c5c246be8620d0.tar.gz
crupest-4f47b123f26d356661702b3d77c5c246be8620d0.tar.bz2
crupest-4f47b123f26d356661702b3d77c5c246be8620d0.zip
deno: merge utils to one file.
Diffstat (limited to 'deno/base/date.ts')
-rw-r--r--deno/base/date.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/deno/base/date.ts b/deno/base/date.ts
deleted file mode 100644
index e65691e..0000000
--- a/deno/base/date.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export function toFileNameString(date: Date, dateOnly?: boolean): string {
- const str = date.toISOString();
- return dateOnly === true
- ? str.slice(0, str.indexOf("T"))
- : str.replaceAll(/:|\./g, "-");
-}