This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
mktime and tm_yday calculations?
- From: Carlos O'Donell <carlos at baldric dot uwo dot ca>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 16 Jul 2003 10:22:26 -0400
- Subject: mktime and tm_yday calculations?
libc,
Why was mktime never augmented to calculate the appropriate other
values directly from a tm_year/tm_yday pair?
Would a patch to that effect be accepted? It's clearly not an outright
regression? If all other entries are zero, and tm_year/tm_yday are set
to non-zero values, the calculation would proceed. The only case might
be bad programs that didn't zero the structure before use?
Cheers,
Carlos.