rename quick to util

This commit is contained in:
2026-02-04 14:07:05 +00:00
parent 941715b6a1
commit 9bd2ea980a
30 changed files with 75 additions and 63 deletions
+30
View File
@@ -0,0 +1,30 @@
<script setup>
import { ref } from "vue";
const time = ref("");
const weekday = ref("");
const day = ref("");
const month = ref("");
function updateDateTime() {
const date = new Date();
day.value = date.getDate();
time.value = date.toLocaleTimeString("en-GB", {
hour: "2-digit",
minute: "2-digit",
});
weekday.value = date.toLocaleDateString("en-GB", { weekday: "long" });
month.value = date.toLocaleDateString("en-GB", { month: "long" });
}
updateDateTime();
setInterval(updateDateTime, 60000);
</script>
<template>
<div class="flex flex-col">
<h4>{{ time }}</h4>
<h4>{{ weekday }} {{ day }}, {{ month }}</h4>
</div>
</template>