<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 24, 2021, 4:26 AM  <<a href="mailto:wangqiang3@sugon.com">wangqiang3@sugon.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="Arial">Hi:<br>
<br>
I have a question is that why rtems's epoch base year is 1988(#define TOD_BASE_YEAR
1988)?<br>
I change TOD_BASE_YEAR to 1970 and TOD_SECONDS_1970_THROUGH_1988 to 0,such
as:</font><font size="2"> </font>
<br><img src="cid:_1_0866949808667DC80033CE78482586C1">
<br>
<br><font size="2" face="Arial">It work well. So I wonder is that a good
method?</font></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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. </div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2"> </font>
<br>
<br><img src="cid:_1_0866AC340866A3780033CE78482586C1">
<br>
<br><font size="2" face="Arial">Thanks!</font><font size="2"> </font>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div></div>