27 Jul
2015
27 Jul
'15
2:30 p.m.
To use Alexander's example:
--> t = datetime(2015, 3, 7, 12, tzinfo=timezone('US/Eastern')) --> t.strftime('%D %T %z %Z') '03/07/15 12:00:00 -0500 EST'
--> (t + timedelta(1)).strftime('%D %T %z %Z') '03/08/15 12:00:00 -0400 EDT'
The data (aka the time) should act naively, but the metadata (aka the timezone) is what should be changing [1]. -- ~Ethan~ [1] Which is to say that naive datetime's should continue as-is, and aware datetimes should exhibit the above behavior.