Add date.timetuple()
Merged
RE
8d ago+56+56+01234567890123456789-3-3-0123456789
Summary by cubic
Adds date.timetuple() and datetime.timetuple() so both return a time.struct_time with tm_isdst set to -1 and tm_zone/tm_gmtoff as None, matching CPython. date fills the time-of-day fields with midnight; datetime uses its own wall-clock fields and is unaffected by tzinfo.
- Shares a single naive
struct_timebuilder for both methods. - Updates
docs/limitations/datetime.mdto listtimetuple()for thedate,datetime, andtimetypes and note the 11-itemstruct_time.