timedesc
Date.ISO_ord
timedesc.tzdb
timedesc.tzlocal
timedesc_tzdb_full
timedesc_tzdb_none
timedesc_tzlocal_none
timedesc_tzlocal_unix
timedesc_tzlocal_utc
type view = private {
year : int;
day_of_year : int;
}
type error = [
| `Does_not_exist
| `Invalid_year of int
| `Invalid_day_of_year of int
]
exception Error_exn of error
val make : year:int -> day_of_year:int -> (t, error) result
Constructs a date in the ISO ordinal calendar.
Returns Error `Invalid_year if year < 0 || 9999 < year.
Error `Invalid_year
year < 0 || 9999 < year
Returns Error `Invalid_day_of_year if day_of_year < 1 || day count of year < day_of_year.
Error `Invalid_day_of_year
day_of_year < 1 || day count of year < day_of_year
val make_exn : year:int -> day_of_year: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