>So you are saying that there is no corelation between the preference
settings for country and the time zone.
There is no corelation between the country picked in the format preference panel
and the time zone pref.
The time zone is set to where the device is intended to be sold. So German
devices have the time zone set for Germany, French for France, the US is set to
EST, and so on.
The time zones should be fairly clear if you look at a map.
>What about the daylight saving flag. How is that represented?
The daylight savings preference simply records which behaviour is expected.
Different countries have different rules (dates). Those rules are not in Palm
OS. DateTime.h has the list of rules. So you can get the preference, and if
it's say, dsUSA, and your code knows that that means daylights savings starts
and ends at certain days, you could test a date and determine if daylight
savings is in effect. It's not a full featured daylights savings manager. It's
just enough so that the user could set things once and not for every app. If
someone wants to write function which takes as input a daylight savings type and
date, and returns a time offset in minutes, I'm sure folks would find it
generally useful.
-Roger Flores