This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos 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]

localtime does not adjust tm_wday


Hello,

We have found that the eCos localtime does not adjust the tm_wday field
when the time is adjusted across a day boundary.  In fact, it looks like
this is intentional based on these comments in
cyg_libc_time_normalize_structtm.

////////////////////////////////////////
// cyg_libc_time_normalize_structtm() //
////////////////////////////////////////
//
// cyg_libc_time_normalize_structtm() will adjust the fields of a struct
tm
// so that they are within the normal ranges expected.
// tm_wday, tm_yday and tm_isdst are ignored

I don't see anything in the POSIX definition of localtime that states
the tm_wday field does not need to be adjusted.  Is this considered a
bug?

Thanks,

-Mat
 


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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