package duration

  1. Overview
  2. Docs
Conversions to various time units

Install

dune-project
 Dependency

Authors

Maintainers

Sources

duration-0.3.1.tbz
sha256=cd88da693951e1212ea83e24ce17f767e95a39a9ce2adda0654b32d75ce68c13
sha512=248fec8ba9ebf6ac7cc91055307496658974e402bb9de6d37027fbe51b6708247530392cc60f954cf8d7ed8a03ce0d2da440fbd9f8720e398a446e0a43f590ad

doc/CHANGES.html

v0.3.1 (2026-04-16)

  • Support micro seconds in of_string (#11 @reynir)

v0.3.0 (2026-04-13)

  • Add Duration.of_string and Duration.of_string_exn (#10 @dinosaure)

v0.2.1 (2022-10-11)

  • Duration.pp: microseconds suffix is now "μs" instead of "us" (#8 by @MisterDA)

0.2.0 (2021-08-04)

  • 32 bit compatibility:

    • Provide of_us_64, of_ms_64, of_sec_64 that take an int64 as input
    • Provide to_us_64, to_ms_64, to_sec_64 that produce an int64 as output
  • Revise Duration.pp to print in a more concise way

0.1.3 (2019-10-26)

  • Duration.pp: don't emit trailing space

0.1.2 (2019-02-16)

  • move build system to dune

0.1.1 (2017-11-18)

  • test 4.05 and 4.06
  • alcotest 0.8.1 compatibility (#2 by @yomimono)
  • Don't ship with -warn-error +A, but use it in ./build

0.1.0 (2016-07-28)

  • initial