The POSIX time functions evaluate the TZ
environment variable to determine the time zone.
If a POSIX-program is not started from the shell but from SDF-environment via /START-EXECUTABLE-PROGRAM
, environment variables are not defined by default.
You can set the time zone before starting the program by setting the element TZ
of the SYSPOSIX
variable (see Environment variables).
If the variable is not set when the program is started, then the C runtime library initializes the variable to the time zone in which Germany is located by setting TZ
to the valueMET-1DST,M3.5.0/02:00:00,M10.5.0/03:00:00
.
To set this default value to a time zone other than the German time zone for the installation, the procedure ICXTZ
is available in the library SINPRC.CRTE.101
resp. SINPRC.CRTE.111
:
ICXTZ
,(TZ
=’time zone specification’)