IBM Support

About the TZ environment variable

Question & Answer


Question

What is the correct format for a TZ (time zone) environment variable for use with the IBM® Rational® ClearCase® Scheduler?

Answer

The format required for the TZ variable is specified by the operating system.




Summary:

TZ=tzn[+ | –]hh[:mm[:ss] ][dzn]


    tzn

Three-letter time-zone name, such as PST. You must specify the correct offset from local time to UTC (Universal Time Coordinated).

    hh

Difference in hours between UTC and local time. Optionally signed.

    mm

Minutes. Separated from hh by a colon (:).

    ss

Seconds. Separated from mm by a colon (:).

    dzn

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.



Example:

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.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Environment Variables","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Environment Variables","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21150296