Changeset 87904ba in rtems


Ignore:
Timestamp:
Jan 15, 1998, 9:39:15 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2f03a608
Parents:
300c8a76
Message:

Error reported by Duncan Smith <dds@…>:

There is a 30 day error in _TOD_Days_since_last_leap_year[2..3]

Thanks.
What's the condition to hit this error?
Every year 4n+2 and 4n+3 ?
(i.e. 1998, 1999, 2002, 2003, ...)

OK: 96 97 00 01 04 05 ...
Bad: 98 99 02 03 06 07 ...

There is also a problem in newlib 1.7.x reported at the same time:

I found another, that would strike only on 2/29/2000, or other leapyears.
Only a problem on 1 day.

Joel: FYI, there is a bug in Newlib localtime.c, localtime or (_tm_time).
Ours is modified for dst and timezones, but the bug was in original source.
I have not looked at the latest public source (nor do I know where to find
it).

Files:
3 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.