notquiteamonad / date_time

date_time is a high-level Rust library for use in situations where precision beyond seconds is not necessary.
Apache License 2.0
8 stars 5 forks source link

Implement next_date and previous_date for DateTuple #1

Closed notquiteamonad closed 5 years ago

notquiteamonad commented 5 years ago

These will mimic the functionality of MonthTuple.next_month and MonthTuple.previous_month, but move a DateTuple on or back by one day.

This will lay the foundation for being able to add and subtract years, months, and days to and from DateTuples.