module Ofday:sig..end
Expresses things like "Seinfeld moved to 6:30pm EST.", while a plain Ofday
expresses something more like "I eat lunch at noon (in whichever timezone I'm in at
the time).".
typet = privatefloat
module Zoned:sig..end
include Comparable_binable
include Comparable.With_zero
include Floatable
include Hashable_binable
include Pretty_printer.S
include Robustly_comparable
include Stringable
val create : ?hr:int -> ?min:int -> ?sec:int -> ?ms:int -> ?us:int -> unit -> tval to_parts : t -> Span.Parts.tval start_of_day : tval end_of_day : tval to_span_since_start_of_day : t -> Span.tval of_span_since_start_of_day : Span.t -> tval add : t -> Span.t -> t optionadd 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 -> Span.t -> t optionval diff : t -> t -> Span.tdiff t1 t2 returns the difference in time between two ofdays, as if they occurred on
the same dayval small_diff : t -> t -> Span.tval to_string_trimmed : t -> stringval to_sec_string : t -> stringval of_string_iso8601_extended : ?pos:int -> ?len:int -> string -> tval to_millisec_string : t -> stringmodule Stable:sig..end
val t_of_sexp : Sexplib.Sexp.t -> tval sexp_of_t : t -> Sexplib.Sexp.tval bin_t : t Core_kernel.Std.Bin_prot.Type_class.tval bin_read_t : t Core_kernel.Std.Bin_prot.Read.readerval __bin_read_t__ : (int -> t) Core_kernel.Std.Bin_prot.Read.readerval bin_reader_t : t Core_kernel.Std.Bin_prot.Type_class.readerval bin_size_t : t Core_kernel.Std.Bin_prot.Size.sizerval bin_write_t : t Core_kernel.Std.Bin_prot.Write.writerval bin_writer_t : t Core_kernel.Std.Bin_prot.Type_class.writer
Expresses things like "Seinfeld moved to 6:30pm EST.", while a plain Ofday
expresses something more like "I eat lunch at noon (in whichever timezone I'm in at
the time).".
Sexps look like "(12:01 nyc)"
Two t's may or may not correspond to the same times depending on which date
they're evaluated.
Strings look like "12:01 nyc"
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.
diff t1 t2 returns the difference in time between two ofdays, as if they occurred on
the same day
trailing seconds and subseconds are trimmed off if they are 0
trailing milliseconds are trimmed
with milliseconds