Improved time handling
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
426ae17597
commit
c180404e15
6 changed files with 77 additions and 90 deletions
9
src/components/UnixTime.vue
Normal file
9
src/components/UnixTime.vue
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
import { defineProps } from 'vue';
|
||||
|
||||
const crntTime = Date.now();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p>The current time in Unix Epoch: <code>{{ Math.floor(crntTime / 1000) }}</code> <br /> or <code>{{crntTime}}</code> in Unix millis</p>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue