# Button Click Command - System

The Click Command property can be associated with the following System interactions:

Note:

- These interactions can also be called via a script. For more information, see the $ Functions: WebPages HMI.
- See $ Functions: System for more information on the System functions listed below.

Click Command | Description | Arguments (with Data Type) | Return Type
--- | --- | --- | ---
System.DateTime.GetNtpEnabled | Checks if NTP servers are used to set the system time. | N/A | Boolean value, returning true if NTP servers are used to set the system time.
System.DateTime.GetNtpServers | Fetches the list of NTP servers configured for use. | N/A | Array of strings, listing the configured NTP servers.
System.DateTime.GetNtpUseDhcp | Checks if DHCP is used to locate NTP servers that are used to set the system time. | N/A | Boolean, returning true if DHCP is used to locate NTP servers.
System.DateTime.GetSupportedTimeZones | Returns a list of timezones supported. The contents of the returned list depend on the value of the tzFilter argument. | tzFilter: Hexadecimal number, specifying the filter used to fetch the list of timezones. Its available values are as follows: 0x01: List popular timezones. 0xFFFFFFFF: List all supported timezones. | Array of strings, listing the timezones supported by the system.
System.DateTime.GetTimeZone | Returns the timezone setting. | N/A | String indicating the current timezone.
System.DateTime.Now | Returns the current date, stored as milliseconds since 1970 in UTC. | N/A | Date, indicating the current date stored as milliseconds since 1970 in UTC. Note: This is the same internal representation that is used by the javascript Date object.
System.DateTime.SetNtpEnabled | Enables or disables the usage of NTP servers to configure the system time. | enabled: Boolean, can be true or false. True enables the usage of NTP servers. | N/A
System.DateTime.SetNtpServers | Sets the list of NTP servers used by the system to configure date and time. | servers: Array of strings, specifying the IP address or URL of the configured NTP server(s). | N/A
System.DateTime.SetNtpUseDhcp | Sets whether DHCP is used to locate NTP servers that are used to set the system time. | enabled: Boolean, can be true or false. True enables the usage of DHCP. | N/A
System.DateTime.SetSystemClock | Sets the current date. | zone: The date, stored as milliseconds since 1970 in UTC. Note: This is the same internal representation that is used by the javascript Date object. | N/A
System.DateTime.SetTimeZone | Sets the specified timezone to be used. | date: String, specifying the name of the configured timezone (as listed in the list of timezones). | N/A
System.GetUpTimeMilliseconds | Returns the uptime in milliseconds (but with microsecond accuracy). | N/A | Double, indicating controller uptime in milliseconds (but with microsecond accuracy, hence the fract-digits).
System.Log.Write | Records a log message, which is read and displayed by the output window dialog of Cognex Designer. The recorded log - presuming Cognex Designer is running - will be recorded to the system log output file as well, available in the following location by default: | message : String, specifying the log message to record. logLevel : Integer, specifying the severity of the log message. Its value must be between 0-3, corresponding to the following severity levels: 0: Verbose 1: Info 2: Warning 3: Error Note: Log messages set to Verbose severity (that is, 0) will not be shown in the Cognex Designer system log. | N/A