Anyone have success w/STRPTIME???
Lyle Johnson
jlj at cfdrc.com
Tue Oct 5 09:43:01 EDT 1999
There's a "pure Python" implementation of strptime available, which
works for Windows (and presumably OS/2 as well):
http://www.fukt.hk-r.se/~flognat/hacks/
Lyle
On Tue, 05 Oct 1999 09:59:15 GMT, junkster at nospam.rochester.rr.com
(Benjamin Schollnick) wrote:
>On Tue, 5 Oct 1999 08:54:34, "Fredrik Lundh" <fredrik at pythonware.com>
>wrote:
>
>> Benjamin Schollnick <junkster at nospam.rochester.rr.com> wrote:
>> > Can anyone point me in the right direction, re: STRPTIME?
>> >
>> > To my knowledge the strptime function(s) are correct below,
>> > yet under both OS/2 & Win NT, I am getting a attribute error.
>>
>> http://www.python.org/doc/current/lib/module-time.html
>> says:
>>
>> strptime (string[, format])
>>
>> Parse a string representing a time according to
>> a format. /.../ This function may not be defined
>> on all platforms.
>>
>> dir(time) will show you if it's defined on your
>> platform (it's not available on Windows)
>
>Great... That explains windows... But why doesn't it work
>under Os/2?
>
>>>> import time
>>>> dir(time)
>['__doc__', '__name__', 'accept2dyear', 'altzone', 'asctime', 'clock',
>'ctime',
>'daylight', 'gmtime', 'localtime', 'mktime', 'sleep', 'strftime',
>'strptime', 't
>ime', 'timezone', 'tzname'] ^^^^^^^^^^^^
>
>I'll double check under Windows NT, but I believe you are right
>in regards to not being available there.
>
> - Benjamin
>================================
>Please feel free to copy any and or
>all of this sig.
>A little something for spam bots:
>
>root at localhost postmaster at localhost admin at localhost
>abuse at localhost postmaster at 127.0.0.1
>
>Chairman William Kennard: bkennard at fcc.gov
>Commissioner Susan Ness: sness at fcc.gov
>Commissioner Harold Furchtgott-Roth: hfurchtg at fcc.gov
>Commissioner Michael Powell: mpowell at fcc.gov
>Commissioner Gloria Tristani: gtristan at fcc.gov
>consumerline at ftc.gov
>fccinfo at fcc.gov
>ssegal at fcc.gov
>
More information about the Python-list
mailing list