MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isEqualYear

Function isEqualYear

packages/@internationalized/date/src/queries.ts:58–60  ·  view source on GitHub ↗
(a: DateValue, b: DateValue)

Source from the content-addressed store, hash-verified

56
57/** Returns whether the given dates occur in the same year, and are of the same calendar system. */
58export function isEqualYear(a: DateValue, b: DateValue): boolean {
59 return isEqualCalendar(a.calendar, b.calendar) && isSameYear(a, b);
60}
61
62/** Returns whether two calendars are the same. */
63export function isEqualCalendar(a: Calendar, b: Calendar): boolean {

Callers 1

queries.test.jsFile · 0.85

Calls 2

isEqualCalendarFunction · 0.85
isSameYearFunction · 0.85

Tested by

no test coverage detected