(self: TimeZone): stringFormats a TimeZone as a string.
Example (Formatting time zones)
import { DateTime } from "effect"
// Outputs "+03:00"
DateTime.zoneToString(DateTime.zoneMakeOffset(3 * 60 * 60 * 1000))
// Outputs "Europe/London"
DateTime.zoneToString(DateTime.zoneMakeNamedUnsafe("Europe/London"))time zones
Source effect/DateTime.ts:11591 lines
export const const zoneToString: (
self: TimeZone
) => string
Formats a TimeZone as a string.
Example (Formatting time zones)
import { DateTime } from "effect"
// Outputs "+03:00"
DateTime.zoneToString(DateTime.zoneMakeOffset(3 * 60 * 60 * 1000))
// Outputs "Europe/London"
DateTime.zoneToString(DateTime.zoneMakeNamedUnsafe("Europe/London"))
zoneToString: (self: TimeZoneself: 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) => string = import InternalInternal.const zoneToString: (
self: DateTime.TimeZone
) => string
zoneToStringReferenced by 4 symbols