package calendars

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CalendarsSource

Sourcetype gregorian
Sourcetype julian
Sourcetype french
Sourcetype hebrew
Sourcetype islamic
Sourcetype _ kind =
  1. | Gregorian : gregorian kind
  2. | Julian : julian kind
  3. | French : french kind
  4. | Hebrew : hebrew kind
  5. | Islamic : islamic kind
Sourcemodule Unsafe : sig ... end
Sourcetype 'a date = private 'a Unsafe.date = {
  1. day : int;
  2. month : int;
  3. year : int;
  4. delta : int;
  5. kind : 'a kind;
}
Sourcetype sdn = int
Sourcetype erroneous_date_kind =
  1. | Invalid_day
  2. | Invalid_month
  3. | Invalid_year
Sourcetype 'a erroneous_date = {
  1. kind : erroneous_date_kind;
  2. value : 'a Unsafe.date;
}
Sourceval make : 'a kind -> day:int -> month:int -> year:int -> delta:sdn -> ('a date, 'a erroneous_date) result
Sourceval gregorian_of_sdn : sdn -> gregorian date
Sourceval julian_of_sdn : sdn -> julian date
Sourceval french_of_sdn : sdn -> french date
Sourceval hebrew_of_sdn : sdn -> hebrew date
Sourceval islamic_of_sdn : sdn -> islamic date
Sourceval to_sdn : 'a date -> sdn
Sourceval to_gregorian : 'a date -> gregorian date
Sourceval to_julian : 'a date -> julian date
Sourceval to_french : 'a date -> french date
Sourceval to_hebrew : 'a date -> hebrew date
Sourceval to_islamic : 'a date -> islamic date
Sourcetype moon_phase =
  1. | NewMoon
  2. | FirstQuarter
  3. | FullMoon
  4. | LastQuarter
Sourceval moon_phase_of_sdn : sdn -> (moon_phase * int * int) option * int