module V1: sig
.. end
include Time_internal
val to_epoch : T.t -> float
module Epoch_cache: sig
.. end
val of_epoch_internal : Zone.t ->
Core_kernel.Std.Float.t ->
Epoch_cache.t * (Time0.Date.t * Ofday.t)
val of_epoch : Zone.t -> float -> Time0.Date.t * Ofday.t
val to_date_ofday : T.t -> Zone.t -> Time0.Date.t * Ofday.t
val of_date_ofday : Zone.t -> Time0.Date.t -> Ofday.t -> T.t
val of_date_ofday_precise : Zone.t ->
Time0.Date.t ->
Ofday.t ->
[> `Never of Time_internal.T.t | `Once of T.t | `Twice of T.t * T.t ]
val to_local_date_ofday : T.t -> Time0.Date.t * Ofday.t
val of_local_date_ofday : Time0.Date.t -> Ofday.t -> T.t
val to_date : T.t -> Zone.t -> Time0.Date.t
val to_ofday : T.t -> Zone.t -> Ofday.t
val to_local_date : T.t -> Time0.Date.t
val to_local_ofday : T.t -> Ofday.t
val convert : from_tz:Zone.t ->
to_tz:Zone.t -> Time0.Date.t -> Ofday.t -> Time0.Date.t * Ofday.t
val utc_offset : ?zone:Zone.t -> T.t -> Span.t
val offset_string : T.t -> zone:Zone.t -> Core_kernel.Std.String.t
val to_string_abs_parts : ?zone:Zone.t -> T.t -> Core_kernel.Std.String.t list
val to_string_abs : ?zone:Zone.t -> T.t -> Core_kernel.Std.String.t
val to_string_trimmed : T.t -> string
val to_sec_string : T.t -> string
val to_filename_string : T.t -> string
val to_string_fix_proto : [< `Local | `Utc ] -> T.t -> string
val of_string_fix_proto : [< `Local | `Utc ] -> Core_kernel.Std.String.t -> T.t
val of_filename_string : Core_kernel.Std.String.t -> T.t
val format : T.t -> string -> string
val pause_for : Span.t -> [> `Ok | `Remaining of Span.t ]
val pause : Span.t -> unit
Pause and don't allow events to interrupt.
val interruptible_pause : Span.t -> [> `Ok | `Remaining of Span.t ]
Pause but allow events to interrupt.
val pause_forever : unit -> 'a
val occurrence : [< `First_after_or_at | `Last_before_or_at ] ->
T.t -> ofday:Ofday.t -> zone:Zone.t -> T.t
val epoch : T.t
include T
val to_string : T.t -> Core_kernel.Std.String.t
exception Time_of_string of string * Core_kernel.Std.Exn.t
exception Time_string_not_absolute of string
val of_string_gen : require_absolute:bool -> Core_kernel.Std.String.t -> T.t
val of_string_abs : Core_kernel.Std.String.t -> T.t
val of_string : Core_kernel.Std.String.t -> T.t
val t_of_sexp_gen : Core_kernel.Std.Sexp.t -> (string -> T.t) -> T.t
val t_of_sexp : Core_kernel.Std.Sexp.t -> T.t
val t_of_sexp_abs : Core_kernel.Std.Sexp.t -> T.t
val sexp_of_t_abs : ?zone:Zone.t -> T.t -> Core_kernel.Std.Sexp.t
val sexp_of_t : T.t -> Core_kernel.Std.Sexp.t
module C: sig
.. end
module Map: Core_kernel.Std.Map.Make_binable_using_comparator
(
C
)
module Set: Core_kernel.Std.Set.Make_binable_using_comparator
(
C
)
include struct ... end
val of_localized_string : Zone.t -> Core_kernel.Std.String.t -> T.t
val next_multiple : base:t -> after:t -> interval:Span.t -> t