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

Function now

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

Source from the content-addressed store, hash-verified

102
103/** Returns the current time in the given time zone. */
104export function now(timeZone: string): ZonedDateTime {
105 return fromAbsolute(Date.now(), timeZone);
106}
107
108/** Returns today's date in the given time zone. */
109export function today(timeZone: string): CalendarDate {

Callers 3

createPlaceholderDateFunction · 0.90
I18nFunction · 0.90
todayFunction · 0.85

Calls 1

fromAbsoluteFunction · 0.90

Tested by

no test coverage detected