package calendar

  1. Overview
  2. Docs
type +'a p constraint 'a = [< field ]
type +'a period = 'a p constraint 'a = [< field ]
val empty : [< Period.date_field ] period
val add : [< Period.date_field ] as 'a period -> 'a period -> 'a period
val sub : [< Period.date_field ] as 'a period -> 'a period -> 'a period
val opp : [< Period.date_field ] as 'a period -> 'a period
val equal : [< Period.date_field ] period -> [< Period.date_field ] period -> bool
val compare : [< Period.date_field ] period -> [< Period.date_field ] period -> int
val hash : [< Period.date_field ] period -> int
val make : int -> int -> int -> t
val lmake : ?year:int -> ?month:int -> ?day:int -> unit -> t
val year : int -> [< field Year ] period
val month : int -> [< field Month Year ] period
val week : int -> [< field Day Week ] period
val day : int -> [< field Day Week ] period
exception Not_computable
val nb_days : [< field ] period -> int
val safe_nb_days : [< `Day | `Week ] period -> int
val ymd : [< field ] period -> int * int * int
OCaml

Innovation. Community. Security.