forked from FoundKeyGang/FoundKey
remove unused code
This commit is contained in:
parent
3e7285c8d5
commit
4934303956
1 changed files with 0 additions and 12 deletions
|
@ -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]));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue