GetTimeZoneCount

This function gets the number of available time zones on the local computer.

Function Group Execution Windows Embedded Thin Client Mobile Access
GetTimeZoneCount Date & Time Synchronous Supported Supported Supported Supported (see “Notes” below)

Syntax

  GetTimeZoneCount()  
Web Studio Help s datetime gettimezonecount.xml d401509e111 GetTimeZoneCount

This function has no parameters.

Returned value

This function returns the number of available time zones on the local computer, depending on where the function is called from (i.e., the project runtime or the Viewer module / thin client).

On Windows Embedded Compact, this function always returns 1 because the operating system only supports the current time zone.

Notes

The list of available time zones varies by operating system version and configuration. If necessary, you can use this function in combination with the function GetTimeZone to generate a list that is specific to your computer.

If this function is called on Mobile Access, it is executed using the system time on the project runtime server.

GetTimeZoneCount