Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

Hour2Clock

  • Last UpdatedOct 29, 2026
  • 1 minute read

Converts time in the HH:MM:SS format into seconds.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

Hour2Clock

Date and Time

Synchronous

Yes

Supported

Supported

Supported

Supported

Supported

Syntax

Hour2Clock( strTime )

strTime

The number of hours, minutes, and seconds in HH:MM:SS format.

Returned value

Returns the number of seconds equivalent to the total number of hours, minutes, and seconds specified.

Examples

Tag Name

Expression

Tag

Hour2Clock( "01:00:00" ) // Returned value = 3600

Tag

Hour2Clock( "10:01:01" ) // Returned value = 36061

In This Topic