package calendar

  1. Overview
  2. Docs
type +'a period constraint 'a = [< Period.date_field ]
val empty : [< Period.date_field ] period
val add : [< Period.date_field Day Week ] as 'a period -> 'a period -> 'a period
val sub : [< Period.date_field Day Week ] as 'a period -> 'a period -> 'a period
val opp : [< Period.date_field Day Week ] 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 -> int -> int -> second -> t
val lmake : ?year:int -> ?month:int -> ?day:int -> ?hour:int -> ?minute:int -> ?second:second -> unit -> t
val year : int -> [< Period.date_field Year ] period
val month : int -> [< Period.date_field Month Year ] period
val week : int -> [< Period.date_field Day Week ] period
val day : int -> [< Period.date_field Day Week ] period
val hour : int -> [< Period.date_field Day Week ] period
val minute : int -> [< Period.date_field Day Week ] period
val second : second -> [< Period.date_field Day Week ] period
val from_date : [< Period.date_field ] as 'a Date.Period.period -> 'a period
val from_time : [< Period.date_field ] as 'a Time.Period.period -> 'a period
val to_date : [< Date.field ] as 'a period -> 'a Date.Period.period
exception Not_computable
val to_time : [< Period.date_field ] as 'a period -> 'a Time.Period.period
val safe_to_time : [< `Day | `Week ] as 'a period -> 'a Time.Period.period
val ymds : [< Period.date_field ] period -> int * int * int * second
OCaml

Innovation. Community. Security.