develooper Front page | perl.datetime | Postings from March 2012

Re: Olson querying

Thread Previous | Thread Next
From:
Zefram
Date:
March 5, 2012 14:22
Subject:
Re: Olson querying
Message ID:
20120305222150.GA2971@lake.fysh.org
New version of the query tool attached.  This one has a lot more options
for searching for zones.  It lets you ask questions like:

    $ olson areas -Cru # where is Russia?
    Asia
    Europe

    $ olson offsets -ICST # what does "CST" mean?
    -06
    -05
    +08
    +09:30
    +10:30

    $ olson zones -Cau -IEST # which zone might EST be in Australia?
    Australia/Brisbane
    Australia/Currie
    Australia/Hobart
    Australia/Lindeman
    Australia/Melbourne
    Australia/Sydney

I've got a todo list with a bunch more features that it ought to
support searching on, but I think I'm going to handle them by a radical
refactoring that yields more of a query language than this collection
of options.

-zefram


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About