I know about http://www.timeanddate.com/worldclock/converter.html

I can't figure out how to query http://www.google.com in a sane natural format like "5pm BST in PST".

Or do I have to write such an app?

link|improve this question
What do you mean exactly? Command line linux? Command you can type into Google? What?! – MailSlut Jul 16 '10 at 9:37
command line in shell and google's query box are both a command line to me – hendry Jul 16 '10 at 9:42
perhaps a better tool would do cities by airport codes, 5pm LHR in SFO – hendry Jul 16 '10 at 9:42
feedback

3 Answers

up vote 3 down vote accepted

It's 6pm in Taipei, what time is it here?

date --date='TZ="Asia/Taipei" 18:00'
Fri Jul 16 11:00:00 BST 2010

At 11am here in London, what time is it in Taipei?

TZ=Asia/Taipei date -d "11:00 BST"
Fri Jul 16 18:00:00 CST 2010
link|improve this answer
feedback

This example is from http://www.pixelbeat.org/cmdline.html#dates

It gives the local time corresponding to 9AM on the west coast of the US, accounting for differing day light savings transitions.

date --date='TZ="America/Los_Angeles" 09:00 next Fri'

Use tzselect to get the TZ. The PST format is ambiguous. IST = Indian Standard Time and Irish Summer Time for example.

link|improve this answer
Didn't know about tzselect, thanks. If you enter wrong 'TZ' input you can get misleading results, e.g. TZ=London date Fri Jul 16 10:28:52 London 2010 – hendry Jul 16 '10 at 10:29
feedback

http://www.wolframalpha.com/input/?i=5+PM+BST+to+PST

link|improve this answer
how does one quickly look up time zone codes? – hendry Jul 16 '10 at 10:31
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.