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

Function isToday

packages/@internationalized/date/src/queries.ts:68–70  ·  view source on GitHub ↗
(date: DateValue, timeZone: string)

Source from the content-addressed store, hash-verified

66
67/** Returns whether the date is today in the given time zone. */
68export function isToday(date: DateValue, timeZone: string): boolean {
69 return isSameDay(date, today(timeZone));
70}
71
72const DAY_MAP = {
73 sun: 0,

Callers 3

useCalendarCellFunction · 0.90
Calendar.tsxFile · 0.90
CalendarCellFunction · 0.90

Calls 2

isSameDayFunction · 0.85
todayFunction · 0.85

Tested by

no test coverage detected