Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|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
add comment

3 Answers

up vote 8 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
share|improve this answer
add comment

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.

share|improve this answer
1  
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
add comment

Use Wolfram Alpha. To the basic URL…

http://www.wolframalpha.com/input/?i=

append the conversion, with spaces replaced by +. For example:

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

Note that Wolfram Alpha does not seem to recognize BST as a time zone.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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