module TZ: TZ
exception Unknown_zone of string
exception Invalid_file_format of string
val init : unit -> unit
init ()
pre-load all available time zones from disk, this function has no effect if
it is called multiple times
module Zone: sig
.. end
module Date_time: sig
.. end
val initialized_zones : unit -> (string * Zone.t) list
available_zones ()
returns a sorted list of time zones that have been loaded from
disk thus far.
val string_of_time : Zone.t -> Time.t -> string
string_of_time zone time
returns a string representation of time
in the given zone in the form like "2008-11-18 15:34:56.123".
val time_of_string : Zone.t -> string -> Time.t
time_of_string zone str
read in the given string assuming that it represents
a time in zone and return the appropriate Time.t
val machine_zone : unit -> (string * Zone.t) option
machine_zone ()
returns the machines current (name, Zone.t) if it can be determined,
or None if it cannot. This function will call init if init has not already been
called
val machine_zone_exn : unit -> string * Zone.t