mktime and tm_yday calculations?

Carlos O'Donell carlos@baldric.uwo.ca
Wed Jul 16 14:47:00 GMT 2003


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.



More information about the Libc-alpha mailing list