What is the maximum value of rtems time of day?

Joel Sherrill joel at rtems.org
Thu Jul 5 15:50:52 UTC 2018

On Thu, Jul 5, 2018 at 3:51 AM, jaeho jo <hot486two at gmail.com> wrote:

> UNIX time starts in 1970, but RTEMS starts from 1988.
> Unix time cannot encode times after 03:14:07 UTC on 19 January 2038.
> What is the maximum value of rtems time of day? 2038 + 18 => 2056?

There is no enforced maximum. The practical limit where the year value
causes issues technically depends on the RTEMS version.

For very old versions, that was the internal time format so 2038 didn't
for those calls. It did matter if you tried to get/set using POSIX calls.

Around 4.8, the internal went to 32-bit time_t POSIX and 2038 was the limit.

I think 4.11 mostly used an internal 64-bit time but it was still 32 bit

For the master (aka 5), it is 64 bit POSIX time_t so everything should be
clean for long term time.


> thanks.
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180705/6f8d7cf8/attachment-0002.html>

More information about the users mailing list