remove unused code

This commit is contained in:
Johann150 2022-08-11 00:38:56 +02:00
parent 3e7285c8d5
commit 4934303956
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -4,18 +4,6 @@ const dateTimeIntervals = {
'ms': 1,
};
export function isTimeSame(a: Date, b: Date): boolean {
return a.getTime() === b.getTime();
}
export function isTimeBefore(a: Date, b: Date): boolean {
return a.getTime() < b.getTime();
}
export function isTimeAfter(a: Date, b: Date): boolean {
return a.getTime() > b.getTime();
}
export function addTime(x: Date, value: number, span: keyof typeof dateTimeIntervals = 'ms'): Date {
return new Date(x.getTime() + (value * dateTimeIntervals[span]));
}