2023-07-11 22:13:18 +01:00
|
|
|
<script>
|
2023-07-10 16:35:58 +01:00
|
|
|
import { seconds_to_timestamp } from 'svelte-podcast';
|
2023-03-06 15:25:34 +00:00
|
|
|
|
2023-07-11 22:13:18 +01:00
|
|
|
/** @type {number} */
|
|
|
|
|
export let value;
|
|
|
|
|
|
|
|
|
|
/** @type {boolean} */
|
2023-03-06 15:25:34 +00:00
|
|
|
export let force_hours = false;
|
|
|
|
|
|
2023-07-10 16:35:58 +01:00
|
|
|
$: timestamp = seconds_to_timestamp(value, force_hours);
|
2023-03-06 15:25:34 +00:00
|
|
|
</script>
|
|
|
|
|
|
2023-07-09 23:21:21 +01:00
|
|
|
<span style="width:{timestamp.length}ch">{timestamp}</span>
|
|
|
|
|
|
2023-03-06 15:25:34 +00:00
|
|
|
<style>
|
|
|
|
|
span {
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
display: block;
|
|
|
|
|
width: 8ch;
|
|
|
|
|
}
|
|
|
|
|
</style>
|