[Zope-Checkins] CVS: Zope/lib/python/DateTime - DateTime.py:1.70
Andreas Jung
andreas@zope.com
Mon, 29 Oct 2001 13:20:50 -0500
Update of /cvs-repository/Zope/lib/python/DateTime
In directory cvs.zope.org:/tmp/cvs-serv25883
Modified Files:
DateTime.py
Log Message:
removed dead code
=== Zope/lib/python/DateTime/DateTime.py 1.69 => 1.70 ===
from string import strip,split,upper,lower,atoi,atof,find,join
from time import time, gmtime, localtime, asctime
-from time import timezone, strftime, mktime
+from time import timezone, strftime
from time import daylight, timezone, altzone
from types import InstanceType,IntType,FloatType,StringType,UnicodeType
try: from time import tzname
@@ -1657,10 +1657,7 @@
if s[-3]==':' and s[-6] in ['+','-']:
hour_off = atoi(s[-6:-3])
min_off = atoi(s[-2:])
-
- ts = mktime((year,month,day,hour,minute,seconds,0,0,0))
- ts = ts + (hour_off*60-min_off)
-
+
return year,month,day,hour,minute,seconds,'GMT%+03d%02d' % (hour_off,min_off)