Skip to main content
Version: 20 R7 BETA

Time string

Time string ( seconds ) : Text

ParameterTypeDescription
secondsInteger, TimeSeconds from midnight
Function resultTextTime as a string in 24-hour format

Description

The Time string command returns the string form of the time expression you pass in seconds.

The string is in the HH:MM:SS format.

If you go beyond the number of seconds in a day (86,400), Time string continues to add hours, minutes, and seconds. For example, Time string (86401) returns 24:00:01.

Note: If you need the string form of a time expression in a variety of formats, use String.

Example

The following example displays an alert box with the message, “46800 seconds is 13:00:00.”

 ALERT("46800 seconds is "+Time string(46800))

See also

String
Time

Properties

Command number180
Thread safe