@welldot/core
isIanaTimeZone
Whether value is an IANA time zone name (e.g. America/Belem, UTC). UTC offsets (-03:00) and unknown names are not valid. Uses the built-in Intl, so no time zone database is bundled.
isIanaTimeZone(
value):boolean
Whether value is an IANA time zone name (e.g. America/Belem, UTC).
UTC offsets (-03:00) and unknown names are not valid. Uses the built-in
Intl, so no time zone database is bundled.
Parameters
value
string
Returns
boolean