# RTC_GetDateTimeExFromSWClock

## Syntax

  `#include <nitro/rtc.h>`

      RTCResult RTC_GetDateTimeExFromSWClock( RTCDate* date ,RTCTimeEx* time );

## Arguments

date | Pointer to the buffer where date information will be stored.
timeEx | Pointer to the buffer where time information will be stored.

## Return Values

Returns the results from the last call to the `RTC_SyncSWClock` function. If a nonzero value is returned, software clock synchronization has failed.

## Description

Uses the software clock to get date and time data. This function works in a similar way to `RTC_GetDateTime` function, but specifies `RTCTimeEx` as a buffer to store the time data, instead of `RTCTime`. `RTCTimeEx` stores time data to millisecond accuracy.

## See Also

`RTC_SyncSWClock, RTCResult, RTCDate, RTCTimeEx`

## Revision History

2008/04/17 Initial version.

CONFIDENTIAL