relativedelta 0.3.1

Rust implementation of relativedelta known from Python's dateutil library. Calculate dates by adding relative and offset values to a datetime instance. Currently the time and chrono crates are supported.
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,
}