Relative Content

Tag Archive for pythondatetimetimetimedelta

Do I need to use timezones with timedelta and datetime.now?

If I only use datetime.now() with timedelta to calculate deltas, is it safe to ignore time zones? For example, is there a case where if a start time is before daylight savings, and an end time is after, that I will get the wrong result if I don’t use a time zone aware call to datetime.now()?