On Sat, Apr 24, 2021, 4:26 AM <wangqia...@sugon.com> wrote:

> Hi:
>
> I have a question is that why rtems's epoch base year is 1988(#define
> TOD_BASE_YEAR 1988)?
> I change TOD_BASE_YEAR to 1970 and TOD_SECONDS_1970_THROUGH_1988 to 0,such
> as:
>
>
> It work well. So I wonder is that a good method?


RTEMS development started in 1988 and it was for the Classic API only.
Using 1988 as the base year gave us a leap year as epoch and dividing by
four worked for a long time to determine leap years.

Over the years, the score has moved to POSIX time and the 1988 restriction
could be enforced not at the score level but at the classic level.

>
>
>
>
> Thanks! _______________________________________________
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to