In my python code, timdelta(months=3) is not initializing
I am playing around with the datetime API and i am trying to add a full year to today’s date. For some reason the code is throwing an error. This is what my code looks like
from datetime import datetime, timedelta
print(datetime.today().date() + timedelta(months=12))
Why is only one digit returned from suntime module for local sunrise minutes
The following code in Python is only returning the first digit of the minutes for local sunrise. This seems to be connected to the datetime.datetime object suntime.Sun uses. Any ideas on why I’m not getting two digits?