[R] package to convert coordiantes to timezone

Michael Denslow michael.denslow at gmail.com
Mon Aug 3 02:25:49 CEST 2009

Hi Thomas,

On Sun, Aug 2, 2009 at 11:02 AM, Thomas Steiner<finbref.2006 at gmail.com> wrote:
> Is there a R-package with a function that returns me the timezone, if
> I hand over longitude and latitude?
> I know online services like
> http://ws.geonames.org/timezone?lat=-38.01&lng=147 and
> http://www.earthtools.org/webservices.htm#timezone and wodner if this
> exists for R too.
> Thanks for helping,
> thomas

There is a geonames package.

> library(geonames)
Loading required package: rjson
> GNtimezone(-38.01,147)
              time countryName rawOffset dstOffset countryCode
gmtOffset lng          timezoneId    lat
1 2009-08-03 10:23   Australia        10        10          AU
11 147 Australia/Melbourne -38.01
Warning message:
In readLines(u) :
  incomplete final line found on

Not sure why I get this error but I think this is what you are after,


> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections

More information about the R-help mailing list