timestamp_ns.pp_debug: use full RFC3339 to print timestamps

it's easier to copy/paste or post-process, it's still very readable, and
you can see the microseconds.
This commit is contained in:
Simon Cruanes 2025-12-17 13:59:19 -05:00
parent 14cd25d289
commit 05ad0421db
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -18,4 +18,4 @@ let pp_debug out (self : t) =
| Some span ->
(match Ptime.add_span Ptime.epoch span with
| None -> Format.fprintf out "ts: <%Ld ns>" self
| Some ptime -> Ptime.pp_human () out ptime)
| Some ptime -> Ptime.pp_rfc3339 ~space:false ~frac_s:6 () out ptime)