mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-24 03:49:11 -05:00
d5d6a67d80
Update slider to be smaller
16 lines
524 B
TypeScript
16 lines
524 B
TypeScript
export function convertSecondsToRunTimeTicks(seconds: number) {
|
|
|
|
const runTimeMilliseconds = seconds * 1000 * 10000;
|
|
|
|
return runTimeMilliseconds;
|
|
}
|
|
|
|
export function convertRunTimeTicksToSeconds(ticks: number) {
|
|
// Convert ticks to seconds
|
|
// https://emby.media/community/index.php?/topic/63357-runtimeticks-microseconds-milliseconds-or-nanoseconds/
|
|
const runTimeMilliseconds = ticks / 10000;
|
|
|
|
const runTimeTotalSeconds = Math.floor(runTimeMilliseconds / 1000);
|
|
|
|
return runTimeTotalSeconds;
|
|
} |