summaryrefslogtreecommitdiff
path: root/src/util/time.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/time.ts')
-rw-r--r--src/util/time.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/time.ts b/src/util/time.ts
index 05188b6d2..ea4f8ca8d 100644
--- a/src/util/time.ts
+++ b/src/util/time.ts
@@ -36,7 +36,7 @@ export interface Duration {
let timeshift = 0;
-export function setDangerousTimetravel(dt: number) {
+export function setDangerousTimetravel(dt: number): void {
timeshift = dt;
}
@@ -121,7 +121,7 @@ export function timestampSubtractDuraction(
return { t_ms: Math.max(0, t1.t_ms - d.d_ms) };
}
-export function stringifyTimestamp(t: Timestamp) {
+export function stringifyTimestamp(t: Timestamp): string {
if (t.t_ms === "never") {
return "never";
}
@@ -142,7 +142,7 @@ export function timestampIsBetween(
t: Timestamp,
start: Timestamp,
end: Timestamp,
-) {
+): boolean {
if (timestampCmp(t, start) < 0) {
return false;
}