[RTEMS Project] #2665: Convert _TOD_To_seconds to use mktime?
RTEMS trac
trac at rtems.org
Sat Mar 19 19:13:30 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 chrisj):
Replying to [comment:2 joel.sherrill]:
> No on timezones.
I think POSIX handles this so this would be a performance and size thing.
> 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 would need to take a close look. I have not done this.
>
> 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.
Good idea.
--
Ticket URL: <http://devel.rtems.org/ticket/2665#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list