Represents a timezone-relative time, rather than an absolute time. This is
equivalent to a Date.t
and an Ofday.t
with no time zone. A
Relative_to_unspecified_zone.t
does not correspond to a single, unambiguous point
in time. Intended as a low-level back-end for high-level timezone-based functions;
most clients should not use Relative_to_unspecified_zone.t
.
to_span_since_epoch
and of_span_since_epoch
don't precisely mean the UNIX
epoch as a moment in time, but rather the timezone-relative date-ofday pair
1970-01-01 00:00:00.
Likewise add
and sub
and diff
all have slightly subtle meanings, where the
Time.Span.t
values involved don't necessarily always translate exactly to an
elapsed period of time. (You can add 2h to a timezone-relative time and get one
that occurs only 1h later in real-time terms, or 3h later).
include Core_kernel__.Time0_intf.Basic with type t := t and module Span := Core__Core_time_float.Time.Time.Span
module Span : Core_kernel__.Span_intf.S
module Replace_polymorphic_compare : Core_kernel.Comparable.Polymorphic_compare with type t := t
include Core_kernel.Comparable.Polymorphic_compare with type t := t
val of_date_ofday : Core_kernel__.Date0.t ‑> Core__Core_time_float.Time.Time.Ofday.t ‑> t
Conversions between relative times and date/ofday.
val to_date_ofday : t ‑> Core_kernel__.Date0.t * Core__Core_time_float.Time.Time.Ofday.t
val to_date : t ‑> Core_kernel__.Date0.t
val to_ofday : t ‑> Core__Core_time_float.Time.Time.Ofday.t
val of_absolute : absolute ‑> offset_from_utc:Core__Core_time_float.Time.Time.Span.t ‑> t
Conversions between absolute and relative time, based on the offset from UTC at
the given time. Use the high-level Time.Zone
wrappers of these conversions.
val to_absolute : t ‑> offset_from_utc:Core__Core_time_float.Time.Time.Span.t ‑> absolute