getWindowsTimeZoneNameByLocation

getWindowsTimeZoneNameByLocation(location: Integer}: String typeMethod;

The getWindowsTimeZoneNameByLocation method of the JadeTimeZone class returns the Windows name of the local time zone of the device at the location specified in the location parameter.

The location parameter values are provided by the global constants in the ExecutionLocation category listed in the following table.

Global Constant Integer Value Method is executed...
DatabaseServer 1 On the database server node
PresentationClient 2 On the presentation client (applicable to applications running in thin client mode)
CurrentLocation 0 The database server node or the presentation client, depending on whether the method is executed on a presentation client node or the database server

The getWindowsTimeZoneNameByLocation method is a type method, so it can therefore be called without instantiating a JadeTimeZone object.

You can obtain the time zone of a device in the Date and Time dialog accessed from the Clock and Region Control Panel applet.

The following example shows the use of the getWindowsTimeZoneNameByLocation method.

example_getWindowsTimeZoneNameByLocation();
begin
    write "The client is in the " & JadeTimeZone@getWindowsTimeZoneNameByLocation(PresentationClient) & " time zone";
    write "The database is in the " & JadeTimeZone@getWindowsTimeZoneNameByLocation(DatabaseServer) & " time zone";
    write "This code is being executed from the " & JadeTimeZone@getWindowsTimeZoneNameByLocation(CurrentLocation) & " time zone";
end;

2020.0.01 and higher