effect-io-ai

Package: effect
Module: DateTime

DateTime.isTimeZone

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.

See

Signature

declare const isTimeZone: (u: unknown) => u is TimeZone

Source

Since v3.6.0