Ticket #2163: timesince.patch
File timesince.patch, 397 bytes (added by , 18 years ago) |
---|
-
timesince.py
24 24 else: 25 25 t = time.localtime() 26 26 if d.tzinfo: 27 tz = LocalTimezone( )27 tz = LocalTimezone(d) 28 28 else: 29 29 tz = None 30 30 now = datetime.datetime(t[0], t[1], t[2], t[3], t[4], t[5], tzinfo=tz)