DWC_GetDateTime

Syntax

#include <dwc.h>

BOOL DWC_GetDateTime(DWCDate *dwcdate,
                     DWCTime *dwctime);

Arguments

dwcdate Pointer to the area to which the retrieved date is written.
dwctime Pointer to the area to which the retrieved time is written.

Return Values

TRUE Retrieval successful.
FALSE Retrieval failed. Returns the value obtained by the local RTC. Retrieval fails only when login is unsuccessful.

Description

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

The date and time you obtain 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.)

Revision History


CONFIDENTIAL