6.7 What Time Is It in Japan?
It's 10 A.M. over there; should be a good time to call. Of course, the argument to TZ has to be one of the time zone files in /usr/lib/zoneinfo . One "gotcha": all the "useful" files in this directory begin with uppercase letters. If you set TZ to "japan," you'll get the Greenwich mean time - which is only about nine hours off! The tm script solves this by complaining if it can't find the timezone file. Another problem you may have is figuring out just what time zone is right for some parts of the world. For example, unless you know your geography fairly well, you might have trouble figuring out that the appropriate TZ setting for Sydney, Australia is Australia/NSW (New South Wales), while Perth is Australia/West . On some systems, though, the timezone files include major cities. If you run tm with no time zone, it will list the time zone names. - , |
|