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)


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

  • 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"
  • 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. – James T Snell 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. – James T Snell 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.

  • 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.

  • 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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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