include Core_kernel__.Zone_intf.Zone
module type S = Core_kernel__.Zone_intf.S
include Core_kernel__.Zone_intf.S_common
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
val likely_machine_zones : Core_kernel__.Import.string Core_kernel__.Import.list Core_kernel__.Import.ref
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 name : t ‑> Core_kernel__.Import.string
val original_filename : t ‑> Core_kernel__.Import.string Core_kernel__.Import.option
original_filename t
return the filename t
was loaded from (if any)
val digest : t ‑> Core_kernel.Md5.t Core_kernel__.Import.option
digest t
return the MD5 digest of the file the t was created from (if any)
module Full_data : sig ... end