package timedesc

  1. Overview
  2. Docs
type view = private {
  1. iso_week_year : int;
  2. iso_week : int;
  3. weekday : weekday;
}
type error = [
  1. | `Does_not_exist
  2. | `Invalid_iso_week_year of int
  3. | `Invalid_iso_week of int
]
exception Error_exn of error
val make : iso_week_year:int -> iso_week:int -> weekday:weekday -> (t, error) result

Constructs a date in the ISO week calendar.

Returns Error `Invalid_iso_week_year if iso_week_year < 0 || 9999 < iso_week_year.

Returns Error `Invalid_iso_week if iso_week < 1 || week count of iso_week_year < iso_week.

val make_exn : iso_week_year:int -> iso_week:int -> weekday:weekday -> t
val view : t -> view
OCaml

Innovation. Community. Security.