The TIMEZONEOFFSET procedure returns the offset of universal time from local time for a given time zone number. To use the TIMEZONEOFFSET procedure, use the following declaration:
INTEGER PROCEDURE TIMEZONEOFFSET (TZ_NUMBER);
VALUE TZ_NUMBER;
INTEGER TZ_NUMBER;
LIBRARY MCPSUPPORT;The parameter to TIMEZONEOFFSET is
|
Parameter |
Meaning |
|
TZ_NUMBER |
Time zone number in the range 1 to 88 |
TIMEZONEOFFSET returns the number of minutes difference, positive or negative, between the given time zone and universal time. The result is negative if the time of day in the time zone is earlier than universal time. The result is positive if the time of day in the time zone is later than universal time. The result is 0 (zero) if the time of day in the time zone is equal to universal time. If the TZ_NUMBER parameter is not valid then TIMEZONEOFFSET returns 9999.

