time, calendar, datetime, etc

Steven Taschuk staschuk at telusplanet.net
Thu Jul 31 21:10:17 EDT 2003


Quoth Ben S:
  [...]
> Problem is, time.localtime() doesn't return a 9-element tuple any more,
> it returns a struct_time. (Since 2.2, I think.)

Ah, yes.  I read Kylotan's question pretty sloppily, it seems.

datetime.timetuple() does indeed return a struct_time, as do
date.timetuple() and datetime.utctimetuple(), and this is clearly
desirable and intended.  I think I'll submit a doc patch.

-- 
Steven Taschuk                                                 o- @
staschuk at telusplanet.net                                      7O   )
                                                               "  (





More information about the Python-list mailing list