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

Function isEqualMonth

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

Source from the content-addressed store, hash-verified

51
52/** Returns whether the given dates occur in the same month, and are of the same calendar system. */
53export function isEqualMonth(a: DateValue, b: DateValue): boolean {
54 return isEqualCalendar(a.calendar, b.calendar) && isSameMonth(a, b);
55}
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 {

Callers 1

queries.test.jsFile · 0.85

Calls 2

isEqualCalendarFunction · 0.85
isSameMonthFunction · 0.85

Tested by

no test coverage detected