(fromDate: Date, toDate: Date)
| 32 | } |
| 33 | |
| 34 | export function getNumDaysSince(fromDate: Date, toDate: Date): number { |
| 35 | let timeDiffMs: number = toDate.getTime() - fromDate.getTime(); |
| 36 | return Math.floor(timeDiffMs / MS_PER_DAY); |
| 37 | } |
| 38 | |
| 39 | export function getShorthandTimeIntervalString( |
| 40 | oldTime: Date, |