You can search for identifiers within the package.
in-package search v0.2.0
timedesc
Date.Ymd
type view = private {
year : int;
month : int;
day : int;
}
type error = [
| `Does_not_exist
| `Invalid_year of int
| `Invalid_month of int
| `Invalid_day of int
]
exception Error_exn of error
val make : year:int -> month:int -> day:int -> (t, error) result
Constructs a date in the Gregorian calendar.
Returns Error `Invalid_year if year < 0 || 9999 < year.
Error `Invalid_year
year < 0 || 9999 < year
Returns Error `Invalid_month if month < 1 || 12 < month.
Error `Invalid_month
month < 1 || 12 < month
Returns Error `Invalid_day if day < 1 || day count of month < day.
Error `Invalid_day
day < 1 || day count of month < day
val make_exn : year:int -> month:int -> day:int -> t
val view : t -> view
val pp_iso8601 : Format.formatter -> t -> unit
val to_iso8601 : t -> string
val of_iso8601 : string -> (t, string) result
val of_iso8601_exn : string -> t