package lunar

  1. Overview
  2. Docs

Description

Provides a set of relatively portable primitives for working with datetime

Published: 02 Apr 2026

README

lunar

From a business perspective, Lunar could be described as a composable library for manipulating dates, timestamps, and ranges using a proleptic Gregorian representation.

What does Lunar offer

  • Working with Time, Date, Datetime and Zoned_datetime
  • Range over comparable elements
  • Arithmetic and truncation operations

The smallest unit of measurement in Lunar is the second, so this library is not intended for high-precision calculations (but rather serves as a foundation for describing applications centered around calendars so it also does not support negative years or leap seconds).

Dependencies (2)

  1. ocaml >= "5.0.0"
  2. dune >= "3.20"

Dev Dependencies (8)

  1. odoc with-doc
  2. ocaml-lsp-server with-dev-setup
  3. merlin with-dev-setup
  4. ocp-indent with-dev-setup
  5. ocamlformat with-dev-setup
  6. utop with-dev-setup
  7. mdx with-test & >= "2.5.1"
  8. ppx_expect with-test & >= "0.17.3"

Used by

None

Conflicts

None