Yocaml.Date
Describes date (supposing naively that everything is in UTC).
Useful aliases for making the doc readable.
Date.make ~time:(hour, min, sec) year month day
tries to create a Date.t
.
val from_string : string -> t Validate.t
val pp : Stdlib.Format.formatter -> t -> unit
val to_string : t -> string
val month_to_int : month -> int
Starts at 1
.
val month_to_string : month -> string
Date.month_to_string Dec
is equal to "Dec"
.
val day_of_week : t -> day_of_week
A Fragile function which seems works at least for 1600 and to 3000 :)
val day_of_week_to_string : day_of_week -> string