[Israel.pm] Timezones

Madani, Srikanth, VF-DE Srikanth.Madani at vodafone.com
Mon Aug 15 06:49:07 PDT 2005


Efi Merdler wrote:

> I want to build a small script that will receive a country name (let's

> say French) and will return what is the current time there.
> I checked the DateTime module, but it requires the addition of time
zone 
> for example 'America/New York'.

Perhaps you can use WWW::Gazetteer::Getty [1] to retrieve a city's
(within a country) latitude and use that to calculate the time by adding
or subtracting from GMT?

I've never tried it myself though.

Hope that helps,
Srikanth Madani

[1] http://search.cpan.org/~lbrocard/WWW-Gazetteer-Getty-0.10/Getty.pm




More information about the Perl mailing list