Calculating time differences given daylight savings time

Washington Ratso jobhunts02 at aol.com
Wed Apr 2 21:45:59 EDT 2014


I am running Python 2.7 and would like to be able to calculate to the second the time difference between now and some future date/time in the same timezone while taking into account daylight savings time.  I do not have pytz.  Any ideas how to do it?

If it requires having pytz, how would I do it with pytz?

Thank you.



More information about the Python-list mailing list