(a: DateValue, b: DateValue)
| 38 | * date. |
| 39 | */ |
| 40 | export function isSameYear(a: DateValue, b: DateValue): boolean { |
| 41 | b = toCalendar(b, a.calendar); |
| 42 | a = startOfYear(a); |
| 43 | b = startOfYear(b); |
| 44 | return a.era === b.era && a.year === b.year; |
| 45 | } |
| 46 | |
| 47 | /** Returns whether the given dates occur on the same day, and are of the same calendar system. */ |
| 48 | export function isEqualDay(a: DateValue, b: DateValue): boolean { |
no test coverage detected