package async_unix

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Require_explicit_time_source.Time_float

include module type of struct include Time_float_unix end
module Span = Time_float_unix.Span
module Zone = Time_float_unix.Zone
val t_sexp_grammar : t Sexplib0.Sexp_grammar.t
type underlying = Core.Time_float.underlying
val typename_of_t : t Typerep_lib.Typename.t
module Replace_polymorphic_compare = Time_float_unix.Replace_polymorphic_compare
val next : t -> t
val prev : t -> t
val to_span_since_epoch : t -> Core.Time_float.Span.t
val of_span_since_epoch : Core.Time_float.Span.t -> t
type comparator_witness = Core.Time_float.comparator_witness
module Date_and_ofday = Time_float_unix.Date_and_ofday
val next_multiple : ?can_equal_after:Base.Bool.t -> base:t -> after:t -> interval:Core.Time_float.Span.t -> Base.Unit.t -> t
val prev_multiple : ?can_equal_before:Base.Bool.t -> base:t -> before:t -> interval:Core.Time_float.Span.t -> Base.Unit.t -> t
val add : t -> Core.Time_float.Span.t -> t
val sub : t -> Core.Time_float.Span.t -> t
val diff : t -> t -> Core.Time_float.Span.t
val abs_diff : t -> t -> Core.Time_float.Span.t
val quickcheck_generator : t Base_quickcheck.Generator.t
val quickcheck_observer : t Base_quickcheck.Observer.t
val quickcheck_shrinker : t Base_quickcheck.Shrinker.t
val gen_incl : t -> t -> t Base_quickcheck.Generator.t
val gen_uniform_incl : t -> t -> t Base_quickcheck.Generator.t
val is_earlier : t -> than:t -> Base.Bool.t
val is_later : t -> than:t -> Base.Bool.t
val of_date_ofday : zone:Core__.Zone.t -> Core__.Date0.t -> Core.Time_float.Ofday.t -> t
val of_date_ofday_precise : Core__.Date0.t -> Core.Time_float.Ofday.t -> zone:Core__.Zone.t -> [ `Never of t | `Once of t | `Twice of t * t ]
val to_date_ofday : t -> zone:Core__.Zone.t -> Core__.Date0.t * Core.Time_float.Ofday.t
val to_date_ofday_precise : t -> zone:Core__.Zone.t -> Core__.Date0.t * Core.Time_float.Ofday.t * [ `Also_at of t | `Also_skipped of Core__.Date0.t * Core.Time_float.Ofday.t | `Only ]
val to_date : t -> zone:Core__.Zone.t -> Core__.Date0.t
val to_ofday : t -> zone:Core__.Zone.t -> Core.Time_float.Ofday.t
val reset_date_cache : Base.Unit.t -> Base.Unit.t
val epoch : t
val convert : from_tz:Core__.Zone.t -> to_tz:Core__.Zone.t -> Core__.Date0.t -> Core.Time_float.Ofday.t -> Core__.Date0.t * Core.Time_float.Ofday.t
val utc_offset : t -> zone:Core__.Zone.t -> Core.Time_float.Span.t
val to_filename_string : t -> zone:Core__.Zone.t -> Base.String.t
val of_filename_string : Base.String.t -> zone:Core__.Zone.t -> t
val to_string_abs : t -> zone:Core__.Zone.t -> Base.String.t
val to_string_abs_trimmed : t -> zone:Core__.Zone.t -> Base.String.t
val to_string_abs_parts : t -> zone:Core__.Zone.t -> Base.String.t Base.List.t
val to_string_trimmed : t -> zone:Core__.Zone.t -> Base.String.t
val to_sec_string : t -> zone:Core__.Zone.t -> Base.String.t
val to_sec_string_with_zone : t -> zone:Core__.Zone.t -> Base.String.t
val of_localized_string : zone:Core__.Zone.t -> Base.String.t -> t
val to_string_iso8601_basic : t -> zone:Core__.Zone.t -> Base.String.t
val occurrence : [ `First_after_or_at | `Last_before_or_at ] -> t -> ofday:Core.Time_float.Ofday.t -> zone:Core__.Zone.t -> t
val of_string_with_utc_offset : Base.String.t -> t
val to_string_utc : t -> Base.String.t
val arg_type : t Core.Command.Arg_type.t
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int -> t) Bin_prot.Read.reader
val bin_shape_t : Bin_prot.Shape.t
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_reader_t : t Bin_prot.Type_class.reader
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val of_string : string -> t
val to_string : t -> string
val pp : Base.Formatter.t -> t -> unit
val (>=) : t -> t -> bool
val (<=) : t -> t -> bool
val (=) : t -> t -> bool
val (>) : t -> t -> bool
val (<) : t -> t -> bool
val (<>) : t -> t -> bool
val equal : t -> t -> bool
val compare : t -> t -> int
val min : t -> t -> t
val max : t -> t -> t
val ascending : t -> t -> int
val descending : t -> t -> int
val between : t -> low:t -> high:t -> bool
val clamp_exn : t -> min:t -> max:t -> t
val clamp : t -> min:t -> max:t -> t Base.Or_error.t
val validate_lbound : min:t Core.Maybe_bound.t -> t Validate.check
val validate_ubound : max:t Core.Maybe_bound.t -> t Validate.check
val validate_bound : min:t Core.Maybe_bound.t -> max:t Core.Maybe_bound.t -> t Validate.check
module Map = Time_float_unix.Map
module Set = Time_float_unix.Set
val hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
val hash : t -> Base.Hash.hash_value
val hashable : t Base.Hashable.t
module Table = Time_float_unix.Table
module Hash_set = Time_float_unix.Hash_set
module Hash_queue = Time_float_unix.Hash_queue
val get_sexp_zone : unit -> Zone.t
val set_sexp_zone : Zone.t -> unit
val (>=.) : t -> t -> bool
val (<=.) : t -> t -> bool
val (=.) : t -> t -> bool
val (>.) : t -> t -> bool
val (<.) : t -> t -> bool
val (<>.) : t -> t -> bool
val robustly_compare : t -> t -> int
val of_tm : Time_float_unix__.Import.Unix.tm -> zone:Zone.t -> t
val of_date_ofday_zoned : Core.Date.t -> {Ofday}6/shadowed/(5904b3fcaf1ef864a6e9dc74a4b199b2).Zoned.t -> t
val to_date_ofday_zoned : t -> zone:Core.Time_float.Zone.t -> Core.Date.t * {Ofday}6/shadowed/(5904b3fcaf1ef864a6e9dc74a4b199b2).Zoned.t
val to_ofday_zoned : t -> zone:Core.Time_float.Zone.t -> {Ofday}6/shadowed/(5904b3fcaf1ef864a6e9dc74a4b199b2).Zoned.t
val to_string_fix_proto : [ `Local | `Utc ] -> t -> string
val of_string_fix_proto : [ `Local | `Utc ] -> string -> t
val of_string_abs : string -> t
val of_string_gen : if_no_timezone:[ `Fail | `Local | `Use_this_one of Zone.t ] -> string -> t
val t_of_sexp_abs : Core.Sexp.t -> t
val sexp_of_t_abs : t -> zone:Zone.t -> Core.Sexp.t
val pause : Span.t -> unit
val interruptible_pause : Span.t -> [ `Ok | `Remaining of Span.t ]
val pause_forever : unit -> Core.never_returns
val format : t -> string -> zone:Zone.t -> string
val parse : ?allow_trailing_input:bool -> string -> fmt:string -> zone:Zone.t -> t
module Exposed_for_tests = Time_float_unix.Exposed_for_tests
module Diff = Time_float_unix.Diff
module Stable = Time_float_unix.Stable
module Ofday : sig ... end
val now : unit -> t
  • deprecated [since 2016-02] Use [Time_source]
OCaml

Innovation. Community. Security.