Posix Timezone format

Louis Guindon Louis_Guindon at pmc-sierra.com
Thu Nov 13 23:05:25 UTC 2008


Hi All,

 

My goal is to provide a user interface showing the information derived
from the TZ zone name. Based on the selected TZ zone name by the user, I
will assign the corresponding POSIX time zone string to the Linux
/tmp/TZ file. This way the local time will show up properly for the
user.

 

However, I am having difficulty to find a reliable source for POSIX time
zone string representation for each defined time zone in the Olson
database. Also, the Olson database is changing many times a year which
is making it difficult to hardcode anything in advance. 

 

I am sure that my problem already encountered by someone on this mailing
list and I am wandering if there is a way to query the current version
of the Olson database with some tool to return the related POSIX
representation for the requested time zone.

 

I don't know if there is an alternative way, but I am also wandering if
the TZ time zone name can used directly without going through the POSIX
representation of the time zone.

 

Note: POSIX time zone representation for me is the following. The TZ
zone name America/Los_angeles is represented as PST8PDT,M3.2.0,M11.1.0.

 

Regards,

 

Louis Guindon

PMC-Sierra

Senior System Design Engineer

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm.icann.org/pipermail/tz/attachments/20081113/0101c5a9/attachment-0001.html 


More information about the tz mailing list