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

Function today

packages/@internationalized/date/src/queries.ts:109–111  ·  view source on GitHub ↗
(timeZone: string)

Source from the content-addressed store, hash-verified

107
108/** Returns today's date in the given time zone. */
109export function today(timeZone: string): CalendarDate {
110 return toCalendarDate(now(timeZone));
111}
112
113export function compareDate(a: AnyCalendarDate, b: AnyCalendarDate): number {
114 return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);

Callers 15

useCalendarGridFunction · 0.90
useCalendarStateFunction · 0.90
convertValueFunction · 0.90
Calendar.test.jsFile · 0.90
RangeCalendarExampleFunction · 0.90
PlantDialogFunction · 0.90
PlantDialogFunction · 0.90
DatePicker.test.jsFile · 0.90

Calls 2

toCalendarDateFunction · 0.90
nowFunction · 0.85

Tested by

no test coverage detected