On 2019-08-16 01:14:03, D Haley wrote:
> Location to timezone seems to be supported by pytzwhere [1].

Interesting!!

> I had a quick play, and I was able to get most of those cities by
> scraping the wikipedia output. Its pretty nasty, but it works about 80%
> of the time, which is close enough. Some manual tuning should fix the
> result.

That's pretty neat. I wonder if there's another package that could give
that offline (city/name -> lat/long).

> This should be able to be fed into tzwhere -- however tzwhere is not in
> debian :(

That shouldn't be hard to fix. Just file a "wnpp" bug and maybe someone
will do it for us. ;)

It would already be pretty cool to be able to specify lat/long and get a
result!

Note that I suspect GNOME and other desktop tools have some logic for
that that could be investigated...

A.

-- 
We will create a civilization of the Mind in Cyberspace. May it be
more humane and fair than the world your governments have made
before.
                         - John Perry Barlow

Reply via email to