+ {{ `` }}
+
+
+ to get
+
+
+ {{Intl.DateTimeFormat(Intl.Locale, format).format(crntTime) + ' '}}
+
+
+
+
\ No newline at end of file
diff --git a/src/components/UnixTime.vue b/src/components/UnixTime.vue
new file mode 100644
index 0000000..2c258e1
--- /dev/null
+++ b/src/components/UnixTime.vue
@@ -0,0 +1,9 @@
+
+
+
+ The current time in Unix Epoch: {{ Math.floor(crntTime / 1000) }}
or {{crntTime}}
in Unix millis
Your current timezone:
The current time in Unix Epoch: { Math.floor(crntTime / 1000) }
or {crntTime}
in Unix millis
To format the time for Discord, you can use:
-
- { `
-
- to get
- {
- Intl.DateTimeFormat(Intl.Locale, {
+
+ }, {hour: '2-digit', minute: '2-digit'}]} dFormat="f" client:load />
-
- { `
-
- to get
- {
- Intl.DateTimeFormat(Intl.Locale, {
+
+ }]} dFormat="t" client:load />
+
-
- { `
-
- to get
-
- {
- Intl.DateTimeFormat(Intl.Locale, {
- hour: '2-digit',
- minute: '2-digit',
- }).format(crntTime)
- }
-
-
- { `
-
- to get
-
- {
- Intl.DateTimeFormat(Intl.Locale, {
+
+ }]} dFormat="T" client:load />
-
- { `
-
- to get
-
- {
- Intl.DateTimeFormat(Intl.Locale, {
+
+ }]} dFormat="d" client:load />
-
- { `
-
- to get
-
- {
- Intl.DateTimeFormat(Intl.Locale, {
+
+ }]} dFormat="D" client:load />