What is RTEMS epoch ?

Joel Sherrill joel.sherrill at OARcorp.com
Fri Jun 13 13:14:21 UTC 2003



Paul Whitfield wrote:
> 
> Dhiraj Gaurh wrote:
> 
> > Hi,
> >  Thanks for your reply. When you wrote "Note Jan 1, 1970" , did you mean
> > "NOT Jan 1, 1970" , or did you mean it could also be Jan 1, 1970, if so
> > configured. Thanks for your patience.
> 
> NOT Jan 1, 1970.
> 
> (Which is the epoch on Unix and Linux systems)
> 
> Sorry about that....

It is a confusing issue.  Internally RTEMS keeps time based upon the
epoch of Jan 1, 1988.  The Classic API services also use the epoch.

The RTEMS POSIX time services, on the other hand, do use the Jan 1,
1970 epoch but will reject attempts to set the date/time to anything
before the 1988 epoch.

And you haven't even begun to worry about when these time
representations
overflow. :)

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list