(u: unknown): u is TimeZone.NamedChecks whether a value is a named TimeZone (IANA time zone).
When to use
Use to narrow an unknown value to the TimeZone.Named variant before
reading named-zone fields such as id.
Source effect/DateTime.ts:4651 lines
export const const isTimeZoneNamed: (
u: unknown
) => u is TimeZone.Named
Checks whether a value is a named TimeZone (IANA time zone).
When to use
Use to narrow an unknown value to the TimeZone.Named variant before
reading named-zone fields such as id.
isTimeZoneNamed: (u: unknownu: unknown) => u: unknownu is TimeZone.interface TimeZone.NamedNamed IANA time zone.
Details
The id field contains the resolved time zone identifier, such as
"Europe/London" or "America/New_York".
Named = import InternalInternal.const isTimeZoneNamed: (
u: unknown
) => u is TimeZone.Named
isTimeZoneNamedReferenced by 1 symbols