# RTC_ConvertSecondToDateTime

## Syntax

  `#include <nitro/rtc.h>`

      void RTC_ConvertSecondToDateTime( RTCDate* date , RTCTime* time, s64 sec );

## Arguments

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.

## Return Values

None.

## Description

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.

## See Also

`RTC_ConvertDateTimeToSecond, RTCDate, RTCTime`

## Revision History

2005/05/17 Initial version.

CONFIDENTIAL