# RTC_ConvertDateTimeToSecond

## C Specification

  `#include <nitro/rtc.h>`

      s64 RTC_ConvertDateTimeToSecond( const RTCDate* date , const RTCTime* time );

## Arguments

date | Pointer to the buffer storing date data.
time | Pointer to the buffer storing time data.

## Return Values

The total number of seconds elapsed since 0:00:00 January 1, 2000. If input is invalid, returns -1.

## Description

Returns the total number of seconds elapsed since 0:00:00 January 1, 2000 as an s64.

## See Also

`RTC_ConvertSecondToDateTime, RTCDate, RTCTime`

## Revision History

05/17/2005 Initial version.