DWC_GetDateTime

Syntax

#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 with this function, the Wi-Fi connection must be established beforehand, using the DWC_LoginAsync or DWC_NASLoginAsync function. The obtained date and time is generated using the difference between the time data from the authentication server and the real-time clock data at authentication. This is not as accurate as the data that can be obtained using the NTP server. 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

2006/07/03 Into the function description, inserted an explanation about the FriendsMatch Library not being used.
2006/03/07 Initial version.


CONFIDENTIAL