scriptorium/utils/date
Types
A date with 1-indexed years and days.
pub type Date {
Date(year: Int, month: Month, day: Day)
}
Constructors
-
Date(year: Int, month: Month, day: Day)
Constants
Functions
pub fn days_in_month(month: Month, year: Int) -> Int
Get the number of days in a month in a given year.
pub fn month_to_string(month: Month) -> String
Convert a month to an English month name string.
pub fn parse_month(month_int: Int) -> Result(Month, Nil)
Parse an integer into a month.