On the doc it says for timedelta(seconds= ), the seconds should be Between 0 and 86399 inclusive. However I hope to pass a parameter with timedelta(seconds=432000) (5 days in seconds. I understand we can pass days = 5 but it was preferred for the parma to be written in seconds. It is larger than 86399 but in console when I tested, it was still resolved to days. Is it ok to pass in seconds like this ? Many thanks for your help.
nowtime = datetime.now() print(nowtime) 2021-06-24 15:08:36.048664 plusdays = timedelta (seconds = 432000) print(nowtime+plusdays) 2021-06-29 15:08:36.048664