DWC_GetDateTime

C Specification

#include <dwc.h>

BOOL DWC_GetDateTime(RTCDate *date, RTCTime *time);
			

Description

Gets the current date and time in GMT, based on the time data obtained from the authentication server during authentication.

To get the date and time using this function, the Wi-Fi connection must be completed beforehand, using the DWC_LoginAsync function or the DWC_NASLoginAsync function.

The date and time obtained with this function is generated using the difference between the time data from the authentication server and the real-time clock data at authentication.

Be aware that this is not as accurate as NTP server data. Consider possible discrepancies in minute/second units.

Arguments

date A pointer to the region storing the current date (GMT).
time A pointer to the region storing the current time (GMT).

Return Values

TRUE The date and time were obtained successfully.
FALSE The date and time were not obtained successfully.

See Also

DWC_LoginAsync, DWC_NASLoginAsync

Revision History

07/03/2006 Inserted an explanation into the function description about when the FriendsMatch Library is not used
03/07/2006 Initial version


CONFIDENTIAL