Question on rtems epoch time

wangqiang3 at sugon.com wangqiang3 at sugon.com
Sat Apr 24 09:25:50 UTC 2021


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? 



Thanks! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210424/e3382c45/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 35006 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20210424/e3382c45/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 11470 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20210424/e3382c45/attachment-0003.gif>


More information about the users mailing list