(u: unknown): u is TimeZoneChecks whether a value is a TimeZone.
When to use
Use to narrow unknown input to any TimeZone before passing it to APIs that
accept either fixed-offset or named time zones.
Source effect/DateTime.ts:4331 lines
export const const isTimeZone: (
u: unknown
) => u is TimeZone
Checks whether a value is a TimeZone.
When to use
Use to narrow unknown input to any TimeZone before passing it to APIs that
accept either fixed-offset or named time zones.
isTimeZone: (u: unknownu: unknown) => u: unknownu is type TimeZone = TimeZone.Offset | TimeZone.NamedRepresents a time zone used by DateTime.Zoned.
Details
A TimeZone is either a fixed offset from UTC or a named IANA time zone.
Companion namespace containing the public variant and protocol types for
TimeZone.
TimeZone = import InternalInternal.const isTimeZone: (
u: unknown
) => u is DateTime.TimeZone
isTimeZoneReferenced by 1 symbols