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 date

Local date and time to get the offset for

STRING timezone

Time zone the local time is in

Return value

INTEGER

The offset from UTC in minutes

Description

This function returns the difference between UTC and local time for a given time, in milliseconds.