Multiple timezones

  • Thread starter Thread starter Alan Davis
  • Start date Start date
A

Alan Davis

I have a requirement to store a small database of
locations and their time zones with code to compare clock
times at the various locations. I am trying to find how to
access the system list of timezones on a PocketPC 2002
using VB.NET 2003 (Compact Framework 1.1).

Documentation on multiple timezones seems to be very rare
if not non-existant. Please help.

Thanks

Alan
 
There's a timezone collection class in OpenNetCF. It will allow you to get
the complete list of timezones or a list of timezones at a given GMT offset,
if you want. If you can't figure out what to do next, post again; I've done
a lot of timezone enumeration stuff.

Paul T.
 
Thanks Paul, I'll look at that tonight when I get home.

I may well ask for more help as I'm suffering from a bad
case of seemingly incurable stupidity.

Alan
-----Original Message-----
you want. If you can't figure out what to do next, post
again; I've done
 
Thanks for that Paul,

But I'm finding that I'm not clever enough to use it.

I created an instance of the TimeZoneCollection class
inside a VB.Net procedure. First I attempted the Initialize
() method and then the Refresh() method, neither of which
returned me items in the collection. I tried again with
Initialize(0), also to no avail.

I got the same results both on the Emulator and my Pocket
PC (iPaq 3800 running PPC2002).

I had a look at the source code for TimeZoneCollection and
found that it retrieves time zone information from
HKLM\Time Zones. I checked my registry with my rudimentary
registry editor and found that this key does not appear to
exist. Do you know where this information would be?

I am extremely grateful for any help.

Thanks

Alan
 
That's a problem that I was wondering about. I don't have any Pocket PC
2002 devices, so I didn't have an opportunity to test that aspect of the
operation. It works fine in CE.NET, so it should work with PPC 2003
devices. I'll see if I can make a few adjustments to at least make it work
with the 2002 emulator. Give me a few hours...

Paul T.
 
Well, I'm pretty much at a loss. It appears to me from the default.fdf file
for the PPC 2000 emulator that it's supposed to have entries in the registry
at HKLM\Software\Microsoft\TimeZones, but it doesn't appear to have them.
Could you check your device and see if there is that key or any like it?

Paul T.
 
Paul,

That key doesn't appear to exist. There is however a key,
HKLM\Time with a value of TimeZoneInformation which my
freebie Regedit utility can't read.

[If there is a good and cheap registry utility out there I
would like to know.]

I suspect that this is the current time zone info but I
may be wrong (it has been known to happen.) I took the
liberty to run a version of the TimeZoneCollection class
substituting its reg path for HKLM\Time, but it still
failed to initialize with any items in its collection.

Thank you once again.

Alan.
 
So there's no \Software\Microsoft\TimeZones key? Great!

As far as registry utilities, use the Remote Registry Editor from eVC. It
does everything you need pretty well. I practically wrote a registry viewer
today using the OpenNETCF stuff, too...

Paul T.

Alan Davis said:
Paul,

That key doesn't appear to exist. There is however a key,
HKLM\Time with a value of TimeZoneInformation which my
freebie Regedit utility can't read.

[If there is a good and cheap registry utility out there I
would like to know.]

I suspect that this is the current time zone info but I
may be wrong (it has been known to happen.) I took the
liberty to run a version of the TimeZoneCollection class
substituting its reg path for HKLM\Time, but it still
failed to initialize with any items in its collection.

Thank you once again.

Alan.
-----Original Message-----
Well, I'm pretty much at a loss. It appears to me from the default.fdf file
for the PPC 2000 emulator that it's supposed to have entries in the registry
at HKLM\Software\Microsoft\TimeZones, but it doesn't appear to have them.
Could you check your device and see if there is that key or any like it?

Paul T.

at least make it
work


.
 
Back
Top