Module Time.Ofday


module Ofday: sig .. end
A time of day.

type t 
include Sexpable
include Binable
include Comparable
include Robustly_comparable
include Stringable
include Floatable
val create : ?hr:int -> ?min:int -> ?sec:int -> ?ms:int -> unit -> t
val to_parts : t -> Time.Span.Parts.t
val min_value : t
val max_value : t
val to_span_since_midnight : t -> Time.Span.t
val of_span_since_midnight : Time.Span.t -> t
val start_of_day : t
val end_of_day : t
val add : t -> Time.Span.t -> t option
add t s shifts the time of day t by the span s. It returns None if the result is not in the same day.
val sub : t -> Time.Span.t -> t option
val to_sec : t -> float
since midnight
val of_sec : float -> t
val small_diff : t -> t -> Time.Span.t option
val pp : Format.formatter -> t -> unit
val to_string_trimmed : t -> string
to_string_trimmed t return a string with trailing seconds and subseconds trimmed off if they are 0
val to_sec_string : t -> string
to_sec_string t returns a string with trailing milliseconds trimmed
val of_string_iso8601_extended : ?pos:int -> ?len:int -> string -> t