include module type of struct include Ptime end
val v : (int * int64) -> tval of_span : span -> t optionval unsafe_of_d_ps : (int * int64) -> tval of_float_s : float -> t optionval to_float_s : t -> floatval truncate : frac_s:int -> t -> tval equal : t -> t -> boolval compare : t -> t -> intval is_earlier : t -> than:t -> boolval is_later : t -> than:t -> boolval add_span : t -> span -> t optionval sub_span : t -> span -> t optiontype date = int * int * inttype weekday = [ | `Fri| `Mon| `Sat| `Sun| `Thu| `Tue| `Wed
]type error_range = int * inttype rfc3339_error = [ | `Eoi| `Exp_chars of char list| `Invalid_stamp| `Trailing_input
]val to_rfc3339 :
?space:bool ->
?frac_s:int ->
?tz_offset_s:tz_offset_s ->
t ->
string