Releases: dune-universe/ptime
1.1.0+dune
CHANGES:
Ptime.of_rfc3339
timezone offset parsing. Be even more lenient
in non-strict parsing mode: allowhhmm
andhh
timezone offsets.
(strict ishh:mm
). Allows to parse an even larger subset of
ISO 8601 than RFC 3339 (dbuenzli#31).- Add
Ptime.{to,of}_year
. Less costly than extracting the first
component ofPtime.to_date_time
. Useful for example to find
out which DST rules a timestamp is subjected to for rendering. - Add
?tz_offset_s
optional argument toPtime.{of,to}_date
(dbuenzli#32). - Add
Ptime.weekday_num
. An integer is often more convenient
than the enum value ofPtime.weekday
(dbuenzli#30). - Add
Ptime.rfc3339_string_error
convenience function. - Use the new
js_of_ocaml
METAocamlfind
standard to link
JavaScript stubs (dbuenzli#28). - No longer install interfaces in the
ptime.clock
package,
this package is now empty.
1.0.0+dune2
CHANGES:
-
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 the
ptime.clock.jsoo
library no longer exists, simply link against
ptime.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 (dbuenzli#26).
1.0.0+dune
CHANGES:
-
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 the
ptime.clock.jsoo
library no longer exists, simply link against
ptime.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 (dbuenzli#26).