Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Time zone information that can be attached to date time like data
val make :
?tz:Time_zone.t ->
?fixed_offset_from_utc:Span.t ->
unit ->
(t, error) result
* tz
is the time zone tied. If only an offset provided during construction, then one a fixed offset one is constructed, e.g. * if say only offset of 10 hours is provided, tz
becomes "UTC+10". * * fixed_offset_from_utc
is the fixed offset from UTC. * If an offset is not provided but the time zone can be represented by a fixed offset, then said offset is used, * e.g. "UTC+1" can be represented by fixed offset of 1 hour. *
val make_exn : ?tz:Time_zone.t -> ?fixed_offset_from_utc:Span.t -> unit -> t
val tz : t -> Time_zone.t