
The ECN No Name Newsletter is no longer being published. This is an archived issue.
[previous article]Worldwide Time.whtml Jeff Sponaugle
With the increase in worldwide traffic on Internet, students and faculty alike are finding themselves interacting with people from other countries. Engaging in conversations often requires good timing (i.e. both people being on-line at the same time.) In order to determine when someone might be logged on, it would be useful to know the local time in their part of the world. There is a built in command in C-shell to allow you to find out the time in any time zone. To find out the time in Poland, for example, you would type the following.
setenv TZ Poland date setenv TZ localtime
This would tell you the time in Poland. The last command will set the TZ variable back to the local time; thus, if you reissue the date command, it will return localtime. For a list of what time zones are available, look in these directory
Sun /usr/share/lib/zoneinfo Gould /etc/zoneinfo/ReadableDataFiles
Keep in mind that the name you set TZ to must be spelled exactly as listed in the files (including punctuation).
Frequent users of this "time teller" might like to set up a shell script in their personal bin directory.
#! /bin/sh
TZ=$1 date
Close the file and type: chmod +x wtime
To use type wtime desired-location. For example "wtime Poland". Remember to rehash if you are running csh.