relativedelta 0.3.2

Complex date arithmetic: add/subtract months and years without errors, target weekdays, lock dates. Better than Duration for semantic calendar operations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(thiserror::Error, Debug)]
pub enum FromError {
	#[error("Expected an absolute value for year, but got None")]
	MissingYear,
	#[error("Expected an absolute value for month, but got None")]
	MissingMonth,
	#[error("Expected an absolute value for day, but got None")]
	MissingDay,
	#[error("Unable to convert RelativeDelta to NaiveDateTime due to invalid date components")]
	InvalidTimeComponents,
	#[error("Unable to convert RelativeDelta to NaiveDateTime due to invalid date components")]
	InvalidDateComponents,
}