On Wed, Jan 7, 2009 at 12:03 PM, Paul Lussier <p.luss...@comcast.net> wrote:
> "Thomas Charron" <twaf...@gmail.com> writes:
>> On Tue, Jan 6, 2009 at 4:26 PM, Paul Lussier <p.luss...@comcast.net> wrote:
>>> Hi Folks,
>>> Is there a python way to get HH:MM:SS from time.localtime()  ?
>>   time.strptime?
> One would have thought...
>  >>> time.strptime(time.localtime())
>  Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/opt/local/lib/python2.5/_strptime.py", line 327, in strptime
>      found = format_regex.match(data_string)
>  TypeError: expected string or buffer

  Wait, I see.  strftime not strptime.  Sorry about that.  strptime is
looking for a string in human readable form.

-- 
-- Thomas
_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to