Module type Core_kernel__Time_intf.Basic
module Time : Core_kernel__.Time0_intf.Sinclude module type of sig ... end
type underlying= Time.underlyingtype t= Time.t
val bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (int -> t) Bin_prot.Read.readerval bin_shape_t : Bin_prot.Shape.tval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.tval hash_fold_t : Base.Hash.state -> t -> Base.Hash.stateval hash : t -> Base.Hash.hash_valueval typerep_of_t : t Typerep_lib.Std_internal.Typerep.tval typename_of_t : t Typerep_lib.Typename.t
module Span = Time.Spanmodule Ofday = Time.Ofdaymodule Replace_polymorphic_compare = Time.Replace_polymorphic_compareval (>=.) : t -> t -> boolval (<=.) : t -> t -> boolval (=.) : t -> t -> boolval (>.) : t -> t -> boolval (<.) : t -> t -> boolval (<>.) : t -> t -> boolval robustly_compare : t -> t -> intval add : t -> Span.t -> tval sub : t -> Span.t -> tval diff : t -> t -> Span.tval next : t -> tval prev : t -> tval to_span_since_epoch : t -> Span.tval of_span_since_epoch : Span.t -> tval (>=) : t -> t -> boolval (<=) : t -> t -> boolval (=) : t -> t -> boolval (>) : t -> t -> boolval (<) : t -> t -> boolval (<>) : t -> t -> boolval equal : t -> t -> boolval compare : t -> t -> intval min : t -> t -> tval max : t -> t -> tval ascending : t -> t -> intval descending : t -> t -> intval between : t -> low:t -> high:t -> boolval clamp_exn : t -> min:t -> max:t -> tval clamp : t -> min:t -> max:t -> t Base.Or_error.t
type comparator_witness= Time.comparator_witness
val comparator : (t, comparator_witness) Base.Comparator.comparatorval validate_lbound : min:t Base.Maybe_bound.t -> t Base.Validate.checkval validate_ubound : max:t Base.Maybe_bound.t -> t Base.Validate.checkval validate_bound : min:t Base.Maybe_bound.t -> max:t Base.Maybe_bound.t -> t Base.Validate.check
module Date_and_ofday = Time.Date_and_ofdayval next_multiple : ?can_equal_after:Core_kernel__.Import.bool -> base:t -> after:t -> interval:Span.t -> Core_kernel__.Import.unit -> tval prev_multiple : ?can_equal_before:Core_kernel__.Import.bool -> base:t -> before:t -> interval:Span.t -> Core_kernel__.Import.unit -> tval now : Core_kernel__.Import.unit -> t
val now : Core_kernel__.Import.unit -> tnow ()returns atrepresenting the current time
Basic operations on times
val add : t -> Span.t -> tadd t sadds the spansto timetand returns the resulting time.NOTE: adding spans as a means of adding days is not accurate, and may run into trouble due to shifts in daylight savings time, float arithmetic issues, and leap seconds. See the comment at the top of Zone.mli for a more complete discussion of some of the issues of time-keeping. For spans that cross date boundaries, use date functions instead.