effect-io-ai

Package: effect
Module: SchemaTransformation

SchemaTransformation.timeZoneOffsetFromNumber

Decodes a numeric time-zone offset in milliseconds into a DateTime.TimeZone.Offset and encodes it back to the offset number.

When to use

Use when you need a schema transformation to represent fixed-offset time zones with numeric millisecond offsets.

Details

Decode uses DateTime.zoneMakeOffset; encode returns the offset’s offset field.

See

Signature

declare const timeZoneOffsetFromNumber: Transformation<DateTime.TimeZone.Offset, number, never, never>

Source

Since v4.0.0