DWC_GetDateTime

Syntax

#include <dwc.h>
BOOL DWC_GetDateTime(RTCDate *date,
                     RTCTime *time);

Arguments

date Pointer to the region storing the current date (GMT).
time 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.

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 in advance using the DWC_LoginAsync or DWC_NASLoginAsync function.

The date and time you get with this function are generated using the difference between the authentication server's timestamp at the time of authentication and the real-time clock's data.

Note that this is not as accurate as data that you can obtain using the NTP server. (Take into account possible discrepancies of seconds or minutes.)

See Also

DWC_LoginAsync
DWC_NASLoginAsync

Revision History

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL