> consider the following simple python script, test.py:
>
> ------
> #!/usr/bin/python
>
> import time
>
> format = '%a %b %d %H:%M:%S %Z %Y'
> timetuple1 = time.localtime(time.time())
> timestring = time.strftime( format , timetuple1 )
> timetuple2 = time.strptime( timestring , format )
> ------
well, i've now discovered that if i remove the time zone ('%Z') from the
format string, it doesn't have this problem. so the workaround for the
actual script i'm writing is to remove the time zone from the string i
want to parse, and just use the format string '%a %b %d %H:%M:%S %Y'.
so i guess it is a bug in the interpreter...?
...derF\lieN
Neil "Fred" Picciotto -=- [EMAIL PROTECTED]
new and improved! -=- http://www.derf.net/ -=- now with actual content!
************
[EMAIL PROTECTED] http://www.linuxchix.org