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

Function parseAbsoluteToLocal

packages/@internationalized/date/src/string.ts:201–203  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

199 * or "2021-11-07T07:45:00-07:00"). The result is converted to the user's local time zone.
200 */
201export function parseAbsoluteToLocal(value: string): ZonedDateTime {
202 return parseAbsolute(value, getLocalTimeZone());
203}
204
205function parseNumber(value: string, min: number, max: number) {
206 let val = Number(value);

Callers 5

DateFieldExampleFunction · 0.90
DateFieldAutoFillFunction · 0.90
DatePickerAutofillFunction · 0.90

Calls 2

getLocalTimeZoneFunction · 0.90
parseAbsoluteFunction · 0.85

Tested by

no test coverage detected