Function TimeZoneOffSet(FromTZ, ToTZ[, UseDST])


The function TimeZoneOffSet computes, in minutes, the offset between two time zones.

     FromTZ,     ! (input) an element expression
     ToTZ        ! (input) an element expression
     [UseDST]    ! (optional) 0 or 1



An element from the set AllTimeZones.


An element from the set AllTimeZones.

UseDST (optional)

A scalar expression specifying whether or not the current setting for daylight saving time (DST) in both time zones should be taken into account. The default is 0, indicating DST is not used.

Return Value

The result of TimeZoneOffSet is the offset, in minutes, between FromTZ and ToTZ.


The result of the function has an associated unit, namely minutes. If FromTZ is UTC, the offset of ToTZ is the usual offset with respect to UTC (or GMT).

See also

AIMMS support for time zones is discussed in full detail in Support for Time Zones and Daylight Saving Time and Working in Multiple Time Zones of the Language Reference.