TimeZoneRepresents a time zone used by DateTime.Zoned.
Details
A TimeZone is either a fixed offset from UTC or a named IANA time zone.
export type 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 = TimeZone.interface TimeZone.OffsetFixed-offset time zone.
Details
The offset is measured in milliseconds from UTC. Positive offsets are
ahead of UTC, and negative offsets are behind UTC.
Offset | TimeZone.interface TimeZone.NamedNamed IANA time zone.
Details
The id field contains the resolved time zone identifier, such as
"Europe/London" or "America/New_York".
Named
/**
* Companion namespace containing the public variant and protocol types for
* `TimeZone`.
*
* @since 3.6.0
*/
export declare namespace TimeZone {
/**
* Shared protocol implemented by all `TimeZone` values.
*
* **Details**
*
* Provides the `TimeZone` type identifier and inspection support.
*
* @category models
* @since 3.6.0
*/
export interface interface TimeZone.ProtoShared protocol implemented by all TimeZone values.
Details
Provides the TimeZone type identifier and inspection support.
Proto extends Inspectable {
readonly [const TimeZoneTypeId: "~effect/time/DateTime/TimeZone"TimeZoneTypeId]: typeof const TimeZoneTypeId: "~effect/time/DateTime/TimeZone"TimeZoneTypeId
}
/**
* Fixed-offset time zone.
*
* **Details**
*
* The `offset` is measured in milliseconds from UTC. Positive offsets are
* ahead of UTC, and negative offsets are behind UTC.
*
* @category models
* @since 3.6.0
*/
export interface interface TimeZone.OffsetFixed-offset time zone.
Details
The offset is measured in milliseconds from UTC. Positive offsets are
ahead of UTC, and negative offsets are behind UTC.
Offset extends interface TimeZone.ProtoShared protocol implemented by all TimeZone values.
Details
Provides the TimeZone type identifier and inspection support.
Proto {
readonly TimeZone.Offset._tag: "Offset"_tag: "Offset"
readonly TimeZone.Offset.offset: numberoffset: number
}
/**
* Named IANA time zone.
*
* **Details**
*
* The `id` field contains the resolved time zone identifier, such as
* `"Europe/London"` or `"America/New_York"`.
*
* @category models
* @since 3.6.0
*/
export interface interface TimeZone.NamedNamed IANA time zone.
Details
The id field contains the resolved time zone identifier, such as
"Europe/London" or "America/New_York".
Named extends interface TimeZone.ProtoShared protocol implemented by all TimeZone values.
Details
Provides the TimeZone type identifier and inspection support.
Proto {
readonly TimeZone.Named._tag: "Named"_tag: "Named"
readonly TimeZone.Named.id: stringid: string
/** @internal */
readonly TimeZone.Named.format: Intl.DateTimeFormatformat: Intl.interface Intl.DateTimeFormatDateTimeFormat
}
}