NaiveDate
struct NaiveDate
ISO 8601 calendar date without timezone.
Fields
Implementions
Static Methods
Methods
replace_day
pub fn replace_day(self, year: int) throws InvalidDateTimeError
Replace the day of the month.
replace_day
pub fn replace_day(self, year: int) throws InvalidDateTimeError
Replace the day of the month.
Replace the day of the month.
replace_month
pub fn replace_month(self, month: int) throws InvalidDateTimeError
Replace the month of the year.
replace_month
pub fn replace_month(self, month: int) throws InvalidDateTimeError
Replace the month of the year.
Replace the month of the year.
replace_year
pub fn replace_year(self, year: int) throws InvalidDateTimeError
Replace the year.
replace_year
pub fn replace_year(self, year: int) throws InvalidDateTimeError
Replace the year.
Replace the year.
The month and day will be unchanged.