effect-io-ai

Package: effect
Module: DateTime

DateTime.DateTime.PreserveZone

Type-level helper used by constructors to preserve a zoned input.

Details

When the input type is DateTime.Zoned, the result type is DateTime.Zoned; otherwise the result type is DateTime.Utc.

Signature

type PreserveZone<A> = A extends Zoned ? Zoned : Utc

Source

Since v3.6.0