Anyone have success w/STRPTIME???
Benjamin Schollnick
junkster at nospam.rochester.rr.com
Tue Oct 5 05:59:15 EDT 1999
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