<script setup>
import { computed } from 'vue'
import dayjs from 'dayjs/esm'
import utc from 'dayjs/esm/plugin/utc'
dayjs.extend(utc)

const props = defineProps({
    unix: {
        type: Number,
        default: 0
    }
});

// compute hours, minutes and seconds from unix-seconds whenever data changes
const progressTime = computed(() => dayjs.utc(props.unix * 1000).format("HH:mm:ss"));

</script>
<template>
    {{ progressTime }}
</template>
<style scoped>
</style>

