Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.
This module adds the definition of a date without time zones. Useful in business modeling.
Find the number of days between the given dates.
Find the number of weeks between the given dates.
Find the number of months between the given dates.
Find the number of years between the given dates.
Add the given days to a given date.
Add the given weeks to a given date.
Add the given months to a given date.
Add the given years to a given date.
Convert a LocalDate to a string in ISO format.
Construct a LocalDate based on ISO formatted string. Opportunity for error denoted by Maybe return type.
Construct a LocalDate based on Year, Month, Day. Opportunity for error denoted by Maybe return type. Errors can occur when any of the given values fall outside of their relevant constraints. For example, the date given as 2000 2 30 (2000-Feb-30) would fail because the day of the 30th is impossible.
Concept of a date without time zones.