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

Function fromDateToLocal

packages/@internationalized/date/src/conversion.ts:261–263  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

259 * Takes a `Date` object and converts it to the time zone identifier for the current user.
260 */
261export function fromDateToLocal(date: Date): ZonedDateTime {
262 return fromDate(date, getLocalTimeZone());
263}
264
265/**
266 * Converts a value with date components such as a `CalendarDateTime` or `ZonedDateTime` into a

Callers

nothing calls this directly

Calls 2

getLocalTimeZoneFunction · 0.90
fromDateFunction · 0.85

Tested by

no test coverage detected