mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[feature] add function to get user oculus token + other small changes
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const SECONDS_IN_MINUTE = 60;
|
||||
const MINUTES_IN_HOUR = 60;
|
||||
|
||||
export function minToS(minutes: number): number {
|
||||
return minutes * SECONDS_IN_MINUTE;
|
||||
}
|
||||
|
||||
export function minToMs(minutes: number): number {
|
||||
return minToS(minutes) * 1000;
|
||||
}
|
||||
|
||||
export function hourToMin(hours: number): number {
|
||||
return hours * MINUTES_IN_HOUR;
|
||||
}
|
||||
|
||||
export function hourToS(hours: number): number {
|
||||
return hours * minToS(MINUTES_IN_HOUR);
|
||||
}
|
||||
Reference in New Issue
Block a user