Re: Olson querying
[email protected] (Rick Measham)
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
Nice utility.
I wouldn't mind something like this too:
$ olson time 13:48 # where is it currently 13:44?
$ olson time 13:48 -Cau # where in Australia is it currently 13:44
Australia/Currie
Australia/Hobart
Australia/Lindeman
Australia/Melbourne
Australia/Sydney
Feels like a useful way to offer a limited number of zones to a customer
when you know their localtime (eg. in a web interface)
Cheers!
Rick Measham
On 6/03/2012 9:21 AM, Zefram wrote:
> 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
smime.p7s
(application/pkcs7-signature, 4.8 KB) - not displayed