Gene
Gene

Reputation: 4242

Enumerate over time zones on a Windows Mobile device

Is there a way to get a list of time zones available on a Windows Mobile 6 (or even better 6.5.3) device? I need information about the bias, the standard bias, the daylight bias and the shifting dates (as in TIME_ZONE_INFORMATION). Those are the things I already tried:

Upvotes: 0

Views: 1082

Answers (2)

Jaapjan
Jaapjan

Reputation: 3385

I think what you are looking for is the Noda Time library, a port of Joda Time.

It provides extensive information about time(zones).

Upvotes: 1

Gene
Gene

Reputation: 4242

The OpenNETCF Windows CE library allows to list the time zones available on a Windows Mobile device. Sample code:

var col = new TimeZoneCollection();
col.Initialize();

foreach (var timeZone in col)
{
  string name = timeZone.DisplayName;
  // ...
}

Internally, the library p/invokes the citydb.dll to obtain the information.

Upvotes: 1

Related Questions