time.strptime() not supported in windows? what the.....

Thomas Wouters thomas at xs4all.net
Mon Aug 7 12:23:41 EDT 2000


On Mon, Aug 07, 2000 at 04:12:40PM +0000, Michael Morrison wrote:

> windows:
> >>> time.strptime("08/07/2000 11:03", "%m/%d/%Y %H:%M")
> Traceback (innermost last):
>   File "<interactive input>", line 0, in ?
> AttributeError: strptime
> 
> unix:
> >>> time.strptime("08/07/2000 11:03", "%m/%d/%Y %H:%M")
> (2000, 8, 7, 11, 3, 0, 0, 220, 0)
> >>> time.asctime(time.strptime("08/07/2000 11:03", "%m/%d/%Y %H:%M"))
> 'Mon Aug  7 11:03:00 2000'

> Okay...WHY isn't this function supported in windows?  That's got to be the
> craziest thing I've ever seen in python so far.  If you need, _ILL_ make the
> function for the windows platform.

strptime is only supported on platforms that support it :-) BSDI doesn't
have strptime, either, so neither does python's time module on BSDI. If you
want to supply a strptime, please do ! I think it would be a cool thing to
have strptime available on BSDI ! :)

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list