Cleanup lib exports (#50)

This commit is contained in:
Ollie Taylor
2023-07-29 17:57:14 +01:00
committed by GitHub
parent bba24215eb
commit 528457fe59
59 changed files with 697 additions and 853 deletions
+7 -5
View File
@@ -1,8 +1,10 @@
import { seconds_to_timestamp } from 'svelte-podcast/utility';
import { format_seconds } from 'svelte-podcast/utility/format-seconds';
// Example
seconds_to_timestamp(5173); // 01:26:13
format_seconds.to_timestamp(5173); // '01:26:13';
// force hours
seconds_to_timestamp(2700, true); // 00:45:00
seconds_to_timestamp(2700, false); // 45:00 (default)
// force hours to be displayed
format_seconds.to_timestamp(2700, true); // '00:45:00';
// only display hours if there are any
format_seconds.to_timestamp(2700, false); // '45:00';