Re: List of time zones compliant both for Linux, Solaris 5.8, OSF1 Tru64, HP-UX
| All the systems that you mention should read the Olson data files | as-is; you shouldn't need to link any of the tz code. Which leads to the question: under what circumstances would you want to use the Olson tz code?
Date: Sat, 14 Apr 2001 14:13:56 +1000 From: Greg Black <gjb@gbch.net> Message-ID: <nospam-987221637.90984@maxim.gbch.net> | Which leads to the question: under what circumstances would you | want to use the Olson tz code? If you're a person who builds the libraries for Solaris, NetBSD, Linux, HP-UX, .... Or, if you just like to build everything from the latest sources (and you have the option to replace or supersede libc functions). kre
<<On Sat, 14 Apr 2001 14:13:56 +1000, Greg Black <gjb@gbch.net> said:
Which leads to the question: under what circumstances would you want to use the Olson tz code?
When you are an operating system vendor. -GAWollman
Greg Black wrote:
| All the systems that you mention should read the Olson data files | as-is; you shouldn't need to link any of the tz code.
Which leads to the question: under what circumstances would you want to use the Olson tz code?
I need to convert a local time attached to a Country, State/City into a GMT time for each incoming request received by our server. This must work in a multithreaded architecture, i.e; we have a fixed number of threads which process the incoming request. Do you have a list of countries, states for the US, cities which matches the timezone list. The only localisation info I receive from the client request is the Country, State or County if exist City and Longitude/Latitude. My idea is to make an exhaustive list of all the countries of the planet associated to the time zone. Each country is a polygon located by two points(X=Longitude, Y=Latitude). Forn the France, it will be simple France/Paris but for the US, the timezone matches a set of states and I need the association table which gives for a given timezone the list of states, cities ... North West North East X1, Y1 -----------------------! ! ! ! ! !----------------------------X2, Y2 South West South East -- François REYGAGNE. Software Architect. opt[e]way S.A., 2881 route des Crêtes, BP308 06906 Sophia Antipolis Cedex, FRANCE tél: +33 (0)4 92 95 27 01 http://www.opteway.com
francois reygagne wrote:
Greg Black wrote:
| All the systems that you mention should read the Olson data files | as-is; you shouldn't need to link any of the tz code.
Which leads to the question: under what circumstances would you want to use the Olson tz code?
I just need the zic compiler which does not exist on HP-UX. So I just build the binary successfully after an update of zic.c file to fix a compilation error as bellow: make all cc -DTZDIR=\"/usr/local/etc/zoneinfo\" -O -c zic.c cc: "zic.c", line 2195: error 1588: "S_IRUSR" undefined. cc: "zic.c", line 2195: error 1588: "S_IWUSR" undefined. cc: "zic.c", line 2195: error 1588: "S_IXUSR" undefined. cc: "zic.c", line 2195: error 1588: "S_IRGRP" undefined. cc: "zic.c", line 2195: error 1588: "S_IXGRP" undefined. cc: "zic.c", line 2195: error 1588: "S_IROTH" undefined. cc: "zic.c", line 2195: error 1588: "S_IXOTH" undefined. *** Error exit code 1 The update of zic.c is very simple, I just add the include statement: #if defined __hpux || defined __hpux__ #include <sys/fcntl.h> #endif Please could you upgrade the zic.c to be compliant with HP_UX
From: francois reygagne <freygagne@opteway.com>
I need to convert a local time attached to a Country, State/City into a GMT time for each incoming request received by our server. [...] Do you have a list of countries, states for the US, cities which matches the timezone list.
I've had to do a mapping from locations to time zones for two different employers. I've looked for off-the-shelf databases that solve the problem, but haven't found anything satisfactory for my purposes. However, you should evaluate the databases available from an astrological company, Astro Communications Services, at <http://astrocom.com/software/pcatlas.html>. If they're not sufficient, you'll probably have to build your own. The Olson database doesn't always identify the exact geographical extent of each time zone. I would like to fill in some of that information. I've worked on a few countries. You can find the work at <http://www.mindspring.com/~gwil/tz.html>. Let me know if you find it helpful, or if you have any suggestions for improvement. Gwillim Law
participants (5)
-
francois reygagne -
Garrett Wollman -
Greg Black -
Gwillim Law -
Robert Elz