Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to find a desktop application or command line tool to show two different timezone concurrently under LINUX.

Anyone knows there are such application?

Say i want to know the time at london and USA at the same time. (different time zone)

share|improve this question
up vote 2 down vote accepted

Assuming you are using Ubuntu 10.10 or previous version .

The GNOME clock applet can show two times in the drop down.

enter image description here

Right click on the clock and select "Preferences." Goto the "Locations" tab and press "add."

Then, select "whatever" from the "Timezone" list.

enter image description here

share|improve this answer
that's great, thx~ – Kit Ho Jul 18 '11 at 17:33
glad to help, anytime. – Binarylife Jul 18 '11 at 17:42
NB: You should have used London rather than Greenwich Mean Time. Given that the United Kingdom uses Daylight Saving Time, they are not always the same! – e100 Jul 30 '12 at 17:51

At the command line, you could use:

watch "echo "Local Time: ";date;echo "";echo "GMT: ";date --utc"

Edit: Here's an example taken from Wikipedia, showing how to use various Timezones:

export TZ=GMT; echo "GMT:               `date +\"%F %R (%Z)\"`"
GMT:               2008-10-31 12:30 (GMT)
export TZ=Europe/Stockholm; echo "Stockholm:    `date +\"%F %R (%Z)\"`"
Stockholm:    2008-10-31 13:30 (CET)
export TZ=Asia/Kuala_Lumpur; echo "Kuala Lumpur:        `date +\"%F %R (%Z)\"`"
Kuala Lumpur:        2008-10-31 20:30 (MYT)
export TZ=US/Central; echo "Dallas:             `date +\"%F %R (%Z)\"`"
Dallas:             2008-10-31 07:30 (CDT)
export TZ=$OLDTZ

Edit 2: Also, here's an example applying some of how @garyjohn suggested this be approached:

watch "echo "JST Time: ";TZ=JST date;echo "";echo "MET-1METDST: "; TZ=MET-1METDST date"
share|improve this answer
You could also get each entry you want on a single line by using "date"'s FORMAT specifying feature to include the label/title text. – Doc Jul 18 '11 at 17:10
that's awesome. but how can we use "date" to get a specific timezone date? say, GMT-7? – Kit Ho Jul 18 '11 at 17:16
@Kit, Okay, I edited the answer to include examples of how to do that. – Doc Jul 18 '11 at 17:21
export TZ=GMT-8; echo "GMT-8: date +\"%F %R (%Z)\"" GMT-8: 2011-07-19 01:27 (GMT) export TZ=GMT+8; echo "GMT+8: date +\"%F %R (%Z)\"" GMT+8: 2011-07-18 09:27 (GMT) It is strange...GMT+8 and GMT-8, the time is reversal.. – Kit Ho Jul 18 '11 at 17:29

You could launch a number of xclock instances from the command line or from a script like this, prefixing each command with the desired timezone (TZ) for that clock.

TZ=JST-9 xclock &
TZ=MET-1METDST xclock &

Those will give you the times in Japan and Germany. See the xclock(1) man page or execute

xclock -help

for more options.

share|improve this answer
oh cool~, but would there any option that can fix it on the desktop just like a google widget? – Kit Ho Jul 18 '11 at 17:13
You can position them using the -geometry option, but xclock is just a normal X application--I don't think there is any way to embed it in your desktop. – garyjohn Jul 18 '11 at 17:39

Not sure what desktop environment you're using, but in KDE I just put a second clock applet on my taskbar panel. You can set the timezone for each clock individually.

share|improve this answer
Well, say gnome 2.x, in fedora/ubuntu distribution – Kit Ho Jul 18 '11 at 17:12
It doesn't appear to be possible with the regular Gnome clock app in more recent versions, unfortunately. – Chris Acheson Jul 18 '11 at 17:24
@Kit Ho , if you are running Ubuntu 10.10 and below see my answer. If Ubuntu 11.04 @Chris he is right. – Binarylife Jul 18 '11 at 17:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .