Skip to main content
Version: Next

timeString

timeString ( secondsTime : time ) : string
timeString ( secondsValue : integer ) : string

ParameterTypeDescription
secondsTimetimeTime expressing seconds from midnight
secondsValueintegerNumber expressing seconds from midnight
ResultstringTime as a string in 24-hour format

Description

The timeString command returns the string form of the time expression you pass in secondsTime or secondsValue.

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

note

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

Example

In the following example we assign the folowing string “46800 seconds is 13:00:00.” to a string variable.

 var vTimeString : string
vTimeString = "46800 seconds is "+timeString(46800)

See also

string
time