Skip to content

Releases: dune-universe/ptime

1.2.0+dune

27 Feb 19:32
Compare
Choose a tag to compare

CHANGES:

  • Fix fractional renderings of Ptime.Span.pp with leading zeros. For
    example 1.036s would render as 1.36s. This is a rendering bug in a
    function for human display, not a bug in the computations or
    conversion functions of Ptime.
  • Add Ptime.weekday type for naming the result of the Ptime.weekday
    function.
  • Regularize naming structure. The ptime.clock.os library is deprecated.
    Use ptime.clock instead.
  • Make the library ptime.clock export ptime.

1.1.0+dune

15 Mar 04:40
Compare
Choose a tag to compare

CHANGES:

  • Ptime.of_rfc3339 timezone offset parsing. Be even more lenient
    in non-strict parsing mode: allow hhmm and hh timezone offsets.
    (strict is hh: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 of Ptime.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 to Ptime.{of,to}_date (dbuenzli#32).
  • Add Ptime.weekday_num. An integer is often more convenient
    than the enum value of Ptime.weekday (dbuenzli#30).
  • Add Ptime.rfc3339_string_error convenience function.
  • Use the new js_of_ocaml META ocamlfind 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

11 Mar 13:32
Compare
Choose a tag to compare

CHANGES:

  • Change the js_of_ocaml strategy for Ptime_clock's JavaScript
    implementation. Primitives of ptime.clock.os are now implemented
    in pure JavaScript and linked by js_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

10 Mar 09:40
Compare
Choose a tag to compare

CHANGES:

  • Change the js_of_ocaml strategy for Ptime_clock's JavaScript
    implementation. Primitives of ptime.clock.os are now implemented
    in pure JavaScript and linked by js_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).