Glossary: Python Beyond the Basics
datetime / timedelta
Also written: timedelta, datetime, date
`datetime` holds a date and a time, and `timedelta` is a length of time. Adding a timedelta moves a date forward, and subtracting two dates gives one.
Glossary: Python Beyond the Basics
Also written: timedelta, datetime, date
`datetime` holds a date and a time, and `timedelta` is a length of time. Adding a timedelta moves a date forward, and subtracting two dates gives one.