time, calendar, datetime, etc
Ben S
bens at replytothegroupplease.com
Thu Jul 31 06:09:18 EDT 2003
Steven Taschuk wrote:
> Quoth Kylotan:
> [...]
>> And does datetime.timetuple() actually return something equivalent to
>> a struct_time as used by the time module? At first glance this looks
>> to be true, but it isn't clearly documented as such.
>
> Isn't it?
>
> timetuple()
> Return a 9-element tuple of the form returned by
> time.localtime().
>
> <http://www.python.org/doc/current/lib/datetime-datetime.html>
Problem is, time.localtime() doesn't return a 9-element tuple any more,
it returns a struct_time. (Since 2.2, I think.)
--
Ben Sizer
http://pages.eidosnet.co.uk/kylotan
More information about the Python-list
mailing list