Package: effect
Module: SchemaTransformation
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
timeZoneFromString for IANA or offset string encodingstimeZoneNamedFromString for IANA named-zone stringsSignature
declare const timeZoneOffsetFromNumber: Transformation<DateTime.TimeZone.Offset, number, never, never>
Since v4.0.0