Hello Anders,
Within the time.h header file, it would appear that the function time() is the only one that is hardware dependent.
The functions ctime(), gmtime(), localtime() and strftime() are intended to use the time_t value returned by time(), as a parameter. The function asctime() would use as a parameter, the tm structure returned by gmtime() or localtime().
The function mktime() returns a time_t value that is derived from a tm structure. However, within the header file, there is no function prototype to set the hardware with the time_t value - a missing hardware dependent function. Usually there should be the function stime() to set the date and time.
Finally, the clock() function is not associated with the RTC device.
However, it would appear that this is "academic", since none of these functions seem to have been actually implemented within CW (at least for the HCS08 - I didn't check the HCS12). I might have reasonably expected all functions to be available, with the exception of time() and stime().
If none of the standard functions have been implemented, you will probably need to "roll your own". It may be somewhat simpler to match the new functions more closely to the RTC device you are using.
Regards,
Mac