applyTimezone
The applyTimezone() function shifts a TheDate by applying the offset of an IANA timezone.
Interactive example
Syntax
typescript
function applyTimezone(
timezone: Timezone
): (input: TheDate) => TheDatetypescript
function applyTimezone(
input: TheDate,
timezone: Timezone
): TheDateParameters
input:TheDatevalue (classic signature only).timezone: IANA timezone.
Return value
A TheDate shifted to the requested timezone.
