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

RTEMS trac trac at rtems.org
Sat Mar 19 15:02:52 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):

 No on timezones. This is strictly convert the time of day structure into a
 time_t. If you are happy with the implementation, then I am also. This was
 just a question from coming across this method while teaching the class
 and wondering.

 I do think it needs to be a public method named something like
 rtems_clock_tod_to_seconds() or rtems_clock_tod_to_time_t(). It is used by
 the shared RTC driver by the private name.

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


More information about the bugs mailing list