LocalTimeMsg::GetDate

Windows CE 5.0 Not SupportedWindows Embedded NavReady 2009 Supported

10/16/2008

This method returns the Universal Coordinated Time (UTC) date. This value must be adjusted for time zone and daylight saving time (DST). It can be used for setting the real-time clock (RTC).

Syntax

unsigned short GetDate();

Parameters

None.

Return Value

Returns the UTC date.

Remarks

Dates are represented as 16-bit values. The low 9 bits of the word represent the day offset from January 1. For example, 002h translates to January 3.

The high 7 bits represent the year offset from year 2000. For example, 0Ah translates to year 2010.

Additional examples:

003Bh translates to February 29, 2000.

0B22h translates to October 18, 2005.

Requirements

Header DBRLib.h
Library DBRLib.lib
Windows Embedded CE Windows CE 5.0, Windows Embedded NavReady 2009

See Also

Reference

LocalTimeMsg::GetTimeAdjust
LocalTimeMsg Class
MSN Direct Services Classes