mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
wip
This commit is contained in:
@@ -95,3 +95,8 @@ export const secondsToMs = (seconds?: number | undefined) => {
|
||||
if (!seconds) return 0;
|
||||
return seconds * 1000;
|
||||
};
|
||||
|
||||
export const msToSeconds = (ms?: number | undefined) => {
|
||||
if (!ms) return 0;
|
||||
return Math.floor(ms / 1000);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user