August 2018
Intermediate to advanced
366 pages
10h 14m
English
When you have a date, it's common to need to apply math to that date. For example maybe you want to move to tomorrow or to yesterday.
Datetimes support math operations, such as adding or subtracting to them, but when time is involved, it's not easy to get the exact number of seconds you need to add or subtract to move to the next or previous day.
For this reason, this recipe will show off an easy way to move to the next or previous day from any given date.