+ 1

Days Past

How would someone calculate the number of days past with 2 dates as information... for instance... Start on November 13th End on January 7th How would one go about calculating that? I don't need the code, just need to know how to get where I need to go

27th Apr 2021, 4:06 PM
LordHill
LordHill - avatar
1 Antwort
+ 3
Use the datetime module. You can subtract dates with it and get a timedelta object as result
27th Apr 2021, 4:16 PM
Benjamin Jürgens
Benjamin Jürgens - avatar