Module Core_kernel__.Zone

include Core_kernel__.Zone_intf.Zone
include Core_kernel__.Zone_intf.S_common

User-friendly interface

type t

The type of a time-zone.

bin_io and sexp representations of Zone.t are the name of the zone, and not the full data that is read from disk when Zone.find is called. The full Zone.t is reconstructed on the receiving/reading side by reloading the zone file from disk. Any zone name that is accepted by find is acceptable in the bin_io and sexp representations.

include sig ... end
val sexp_of_t : t ‑> Sexplib.Sexp.t
val compare : t ‑> t ‑> Core_kernel__.Import.int
val input_tz_file : zonename:Core_kernel__.Import.string ‑> filename:Core_kernel__.Import.string ‑> t

input_tz_file ~zonename ~filename read in filename and return t with name t = zonename

likely_machine_zones is a list of zone names that will be searched first when trying to determine the machine zone of a box. Setting this to a likely set of zones for your application will speed the very first use of the local timezone.

val of_utc_offset : hours:Core_kernel__.Import.int ‑> t

of_utc_offset offset returns a timezone with a static UTC offset (given in hours).

val utc : t

utc the UTC time zone. Included for convenience

original_filename t return the filename t was loaded from (if any)

digest t return the MD5 digest of the file the t was created from (if any)

module Full_data : sig ... end
module Make : functor (Time : Core_kernel__.Time0_intf.S) -> S with type t = t and module Time := Time