remove unused code
Some checks failed
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/lint-client Pipeline failed

This commit is contained in:
Johann150 2022-08-11 00:38:56 +02:00 committed by Francis Dinh
parent 53947c4506
commit 727323c37a

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]));
}