[RTEMS Project] #2665: Convert _TOD_To_seconds to use mktime?

RTEMS trac trac at rtems.org
Mon Mar 21 14:40:36 UTC 2016


#2665: Convert _TOD_To_seconds to use mktime?
---------------------------+-------------------
 Reporter:  joel.sherrill  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.12
Component:  cpukit         |     Version:  4.12
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+-------------------

Comment (by joel.sherrill):

 The original specifications RTEMS is based upon are here:

 https://ftp.rtems.org/pub/rtems/people/joel/RTEID-ORKID/

 to the best of my recollection, there is no mention of epoch, timezones,
 leap seconds, or leap years. The epoch of 1988 was chosen since it was the
 leap year immediately prior to the inception of RTEMS as a project.

 At one point, the computation from tod to time_t did look like the
 reference in #2189.

 I'm not trying to be argumentative but at this point, the score time is
 POSIX time and the tod returned is an alternative representation of that
 with the limitation that you can't set the time prior to 1988 via the
 Classic API.

 Timezone is via the C Library and leap seconds would be the responsibility
 of ntp or other time syncing services.

 This ticket is simply that this conversion doesn't look like a standard
 algorithm. The ticket you reference is asking to document the
 relationships of various time representations/APIs.

--
Ticket URL: <http://devel.rtems.org/ticket/2665#comment:5>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list