timeString
timeString ( secondsTime : time ) : string
timeString ( secondsValue : integer ) : string
Parameter | Type | Description | |
---|---|---|---|
secondsTime | time | -> | Time expressing seconds from midnight |
secondsValue | integer | -> | Number expressing seconds from midnight |
Result | string | <- | Time 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)