We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In our embedded project we need to manage time data with both time_t and struct tm standard types.
The former for storage, easy computation of delta time, transmission over a low bitrate channel. The latter for displaying data on a LCD and interfacing to a I2C-driven RTC.
In other environments (also an 8-bit ...) we manage both types using ANSI-C mktime() and gmtime() functions.
However, I read in http://www.keil.com/support/man/docs/ca/ca_xa_librarydif.htm, that MDK does not implement these two functions.
Can anyone help me in finding any library or source code for mktime() and gmtime() that I can use on an ARM7 with MDK?
Kind regards, Marco Accame.
RealView comiler implement rich set of time converting and formated printing function, see the "time.h".
the header declares the functions but their definition in the library libc is empty and does nothing.
this behaviour is documented in the link of my previous posting.
what i want to do is to override these dummy functions with functions of my own and i am asking if anybody knows about a simple c implementation of mktime() and gmtime().
regards, marco
There are a number of implementations available if you google.
However, I recommend that you check the gcc runtime library.
One thing: When you ask about implementations, you also have to specify what license limitations you can accept.
Specifically to search for source code: http://codesearch.google.com
"specify what license limitations you can accept."
This can be included in the search query