Cleanup lib exports (#50)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user