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
commit1becff84c83ad28b9d65bb7edf89e5b23f5b9b86 (patch)
tree45af9ecb2a8633b808b820b31bbcf34f38912cfc /deno/base/date.ts
parent6e2894f2c917dfe6c5a03e6453be292118f4ef00 (diff)
downloadcrupest-1becff84c83ad28b9d65bb7edf89e5b23f5b9b86.tar.gz
crupest-1becff84c83ad28b9d65bb7edf89e5b23f5b9b86.tar.bz2
crupest-1becff84c83ad28b9d65bb7edf89e5b23f5b9b86.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, "-");
-}