This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Where to get mktime() and gmtime() functions for MDK?

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.

Parents
  • 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

Reply
  • 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

Children