-
Change the
js_of_ocaml
strategy forPtime_clock
's JavaScript implementation. Primitives ofptime.clock.os
are now implemented in pure JavaScript and linked byjs_of_ocaml
. This means that theptime.clock.jsoo
library no longer exists, simply link againstptime.clock.os
instead. Thanks to Hugo Heuzard for suggesting and implementing this. -
Require OCaml >= 4.08
-
Correct a potential overflow in Ptime.Span.of_float_s (#26).
- Require OCaml >= 4.03
- Drop dependency on
result
compatibility package. - Alter install structure.
ptime/{os,jsoo}
are now installed inptime/clock/{os,jsoo}
. Also aptime_clock.cm[t]i
is now installed inptime/clock/
. Theocamlfind
packages are unchanged except forptime.clock.os.top
which no longer exists. - Handle
Pervasives
deprecation. - Fix
Ptime.truncate
to always truncate down. Thanks to David Kaloper Meršinjak for the report & fix. - Allow compiling with MSVC compiler. Thanks to Jonah Beckford for the patch.
- Make the package compatible with
js_of_ocaml
3.3.0's namespacing
Ptime_clock
: Windows support. Thanks to IndiscriminateCoding and David Allsopp for the contribution.- Fix
Ptime.frac_s
on pre-epoch time stamps. The function computed a span of1s - f
instead off
on these. This function is not used internally so this only affects users of this function that apply it on pre-epoch time stamps (#12). Thanks to David Kaloper Meršinjak for the report.
- Fix package for -custom linking.
- Add
?tz_offset_s
optional argument toPtime.weekday
. Thanks to Maxence Guesdon for suggesting.
- Add
Ptime.v
andPtime.Span.v
to safely deal with trusted inputs. Thanks to Matt Gray for suggesting. - Add
Ptime.weekday
, to help conversions to denormalized timestamp formats. Thanks to Romain Calascibetta for suggesting. - Build depend on topkg.
- Relicense from BSD3 to ISC.
First release. Thanks to Raphaël Proust for lodging support.