Hello,
I’d like to announce new releases of ptime and mtime. Ptime and mtime provide types and clocks for POSIX and monotonic time. A few highlights:
-
Ptime’s non-strict RFC 3339 parsing is further relaxed to parse
hhmm
andhh
time zones (strict ishh:mm
). This is sometimes found in web services. Strictly speaking it means a larger subset of ISO 8601 is parsed. Other than that the release adds a few more convenience API entry points for dealing with years and weekdays, see the release notes for all the details. -
On Linux and MacOS
Mtime_clock
does now take into account system sleep time by respectively usingCLOCK_BOOTTIME
andmach_continuous_time
(thanks to @BikalGurung for the patch). -
The
Mtime
module suffered a bit of floating point conversion mess and bugs (thanks to @talex5 for reporting). The functions deprecated in 1.4.0 have now been removed[1] and the single point of conversion with floats are theMtime.Span.{to,of}_float_ns
functions.
Other changes are described in the release notes for ptime
and mtime
.
Home pages: ptime, mtime
Docs & manuals: ptime, mtime or odig doc ptime mtime
Install: opam install ptime mtime
Best,
Daniel
A big thanks to my donators. I welcome and thank the new donator @jhw.
-
It seems that this lead to quite a bit of breakage on the
opam-repository
. Sorry about that I didn’t know there were so many packages usingmtime
. ↩︎