Question & Answer
What is the correct format for a TZ (time zone) environment variable for use with the IBM® Rational® ClearCase® Scheduler?
The format required for the TZ variable is specified by the operating system.
- For Microsoft® Windows® search for _tzset() in Microsoft Developer Network (MSDN).
- For UNIX® and Linux® see section 8.3 Other Environment Variables in The Single UNIX Specification Version 3.
TZ=tzn[+ | –]hh[:mm[:ss] ][dzn]
Three-letter time-zone name, such as PST. You must specify the correct offset from local time to UTC (Universal Time Coordinated).
Difference in hours between UTC and local time. Optionally signed.
Minutes. Separated from hh by a colon (:).
Seconds. Separated from mm by a colon (:).
Three-letter daylight-saving-time zone such as PDT. If daylight saving time is never in effect in the locality, set TZ without a value for dzn.
On UNIX, set /etc/TIMEZONE to a value other than a full POSIX string for use with the scheduled ClearCase jobs.
Incorrect Value: TZ=GMT0BST
Correct Value: TZ=GMT0BST-1,M4.5.0/2,M10.5.0/2
On Windows, you can refer to this link, Setting TZ Environment Variable on Windows.
Was this topic helpful?
16 June 2018