This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: timetuple() returns a struct_time
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, staschuk
Priority: normal Keywords: patch

Created on 2003-08-21 05:47 by staschuk, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
struct_time.patch staschuk, 2003-08-21 05:47
Messages (2)
msg44489 - (view) Author: Steven Taschuk (staschuk) Date: 2003-08-21 05:47
The docs for the datetime module describe the return value 
of the .timetuple() methods as being 9-tuples, when in fact 
they are instances of time.struct_time.

The attached patch is a simple-minded rewrite to make this 
point clear.  (A more sophisticated rewrite might explain 
why these methods are called "timetuple" even though they 
don't return tuples.)
msg44490 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-04 18:30
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as libdatetime.tex 1.50 and
1.49.8.2.
History
Date User Action Args
2022-04-10 16:10:45adminsetgithub: 39098
2003-08-21 05:47:37staschukcreate