public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] localtime does not adjust tm_wday
@ 2009-03-19 10:02 Kramer, Mat
  0 siblings, 0 replies; only message in thread
From: Kramer, Mat @ 2009-03-19 10:02 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-17 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-19 10:02 [ECOS] localtime does not adjust tm_wday Kramer, Mat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).