[feature] add function to get user oculus token + other small changes

This commit is contained in:
MathieuG-P
2023-09-28 20:16:02 +02:00
parent bd7d6b2f2e
commit 8bfe4caa5e
6 changed files with 125 additions and 13 deletions
+18
View File
@@ -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);
}