time, calendar, datetime, etc
Ben S
bens at replytothegroupplease.com
Wed Jul 30 22:39:50 EDT 2003
Skip Montanaro wrote:
> kylotan> PS. I use 'time.strptime(myTime, '%a %b %d %H:%M:%S
> %Y')' as a kylotan> reverse-asctime(), and was surprised that I
> couldn't find this kylotan> wrapped in a function in any of the
> modules. Maybe such a kylotan> function would be considered for
> future addition?
>
> Seems simple enough to not be needed. What makes asctime() all that
> special?
Sorry...I just rechecked the docs and it would appear that this is the
default behaviour of strptime if you omit the format string. Therefore a
new function isn't needed.
--
Ben Sizer
http://pages.eidosnet.co.uk/kylotan
More information about the Python-list
mailing list