GetUTCOffset (open)
Get the offset from UTC for the given time zone on a given local time
Syntax
LOADLIB "wh::util/localization.whlib";
INTEGER FUNCTION GetUTCOffset(DATETIME date, STRING timezone)Parameters
DATETIME dateLocal date and time to get the offset for
STRING timezoneTime zone the local time is in
Return value
INTEGERThe offset from UTC in minutes
Description
This function returns the difference between UTC and local time for a given time, in milliseconds.