This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
localtime does not adjust tm_wday
- From: "Kramer, Mat" <MKramer at TransomaMedical dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 17 Mar 2009 17:16:21 -0500
- Subject: [ECOS] 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