This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]