View as Markdown

API reference: @salmonui/scheduler

fromZonedDateTimefunction

import { fromZonedDateTime } from '@salmonui/scheduler';
function fromZonedDateTime(wallTime: DateTimeInput, zone: string): Date;

The instant (Date) of wall time wallTime in zone; DST gaps move forward and overlaps take the earlier instant (Temporal 'compatible'). An invalid input gives an invalid Date.