Open smondet opened 5 years ago
Here: https://github.com/OCamlPro/ocplib-json-typed/blob/master/src/json_repr.ml#L161
(* Example: Half-an-hour on time-stamps :) *) ocaml# Format.fprintf Format.std_formatter "%g\n%!" (Unix.gettimeofday ());; 1.54543e+09 ocaml# (Unix.gettimeofday () -. 1.54543e+09) /. 60.;; - : float = 30.1761083324750281
pp is used there:
pp
Cf. also:
ocaml# Ezjsonm.to_string (`A [`Float (Unix.gettimeofday ())]);; - : string = "[1545432525.245818]"
Here: https://github.com/OCamlPro/ocplib-json-typed/blob/master/src/json_repr.ml#L161
pp
is used there: