Ptime
module Span : sig ... end
val v : (int * int64) -> t
val epoch : t
val min : t
val max : t
val unsafe_of_d_ps : (int * int64) -> t
val of_float_s : float -> t option
val to_float_s : t -> float
type time = (int * int * int) * tz_offset_s
val to_date_time : ?tz_offset_s:tz_offset_s -> t -> date * time
val of_date : ?tz_offset_s:tz_offset_s -> date -> t option
val to_date : ?tz_offset_s:tz_offset_s -> t -> date
val of_year : ?tz_offset_s:tz_offset_s -> int -> t option
val to_year : ?tz_offset_s:tz_offset_s -> t -> int
val weekday : ?tz_offset_s:tz_offset_s -> t -> weekday
val weekday_num : ?tz_offset_s:tz_offset_s -> t -> int
val pp_rfc3339_error : Format.formatter -> rfc3339_error -> unit
val rfc3339_error_to_msg :
('a, [ `RFC3339 of error_range * rfc3339_error ]) result ->
('a, [> `Msg of string ]) result
val rfc3339_string_error :
('a, [ `RFC3339 of error_range * rfc3339_error ]) result ->
('a, string) result
val of_rfc3339 :
?strict:bool ->
?sub:bool ->
?start:int ->
string ->
(t * tz_offset_s option * int, [> `RFC3339 of error_range * rfc3339_error ])
result
val to_rfc3339 :
?space:bool ->
?frac_s:int ->
?tz_offset_s:tz_offset_s ->
t ->
string
val pp_rfc3339 :
?space:bool ->
?frac_s:int ->
?tz_offset_s:tz_offset_s ->
unit ->
Format.formatter ->
t ->
unit
val pp_human :
?frac_s:int ->
?tz_offset_s:tz_offset_s ->
unit ->
Format.formatter ->
t ->
unit
val pp : Format.formatter -> t -> unit
val dump : Format.formatter -> t -> unit