package calendar

  1. Overview
  2. Docs

A period represents the time passed between two events (a date, a time...). Only an interface defining arithmetic operations on periods is defined here. An implementation of this interface depends on the kind of an event (see module Time.Period, Date.Period and Calendar.Period).

type date_field = [
  1. | `Year
  2. | `Month
  3. | `Week
  4. | `Day
]
module type S = sig ... end

Common interface for all periods.