Closed GoogleCodeExporter closed 8 years ago
check that this is the function
def parseTime(strTime, format = "%a %b %d %H:%M:%S"):# example: Mon Aug 7
21:08:52
''' parses a time string formatted in OGame's most usual format and
converts it to a datetime object'''
format = "%Y " + format
strTime = str(datetime.datetime.now().year) + " " +strTime
date = datetime.datetime.strptime(strTime, format)
return date
and that this line is at the top (line 10 or so)
import datetime, time
and can you post your translation
Original comment by King.Vash@gmail.com
on 10 Feb 2009 at 12:33
Original comment by King.Vash@gmail.com
on 12 Feb 2009 at 7:20
Original issue reported on code.google.com by
przem...@wp.pl
on 9 Feb 2009 at 4:52