#include <nitro/rtc.h>
void RTC_ConvertSecondToDateTime( RTCDate* date , RTCTime* time, s64 sec );
date | Pointer to the buffer storing the date data. |
time | Pointer to the buffer storing the time data. |
sec | The total elapsed number of seconds, using January 1, 2000, 12:00.00 a.m. as 0. |
None.
This function converts the total elapsed number of seconds, using January 1, 2000, 12:00.00 a.m. as 0 to the RTCDate
and RTCTime
types. sec
must be 0 or more and 3155759999 or lower. If less than 0 it is changed to 0 and if more than 3155759999 it is changed to 3155759999. Then the result is returned.
RTC_ConvertDateTimeToSecond, RTCDate, RTCTime
05/17/2005 Initial version.