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.
Right click on the clock and select "Preferences." Goto the "Locations" tab and press "add."
Then, select "whatever" from the "Timezone" list.
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:
OLDTZ=$TZ 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 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
for more options.
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.