Skip to content

Time.ToString

Name Mandatory Description Default Type
⬅️ Input The time to convert. IntFloat
Output ➡️ A string representation of the time. String
Millis No True if the input is given in milliseconds, False if given in seconds. false Bool

This shard converts time into a human readable string.

Examples

1
2
3
4
5
6
7
8
0 | Time.ToString | Log
0 | Time.ToString(Millis: true) | Log
500 | Time.ToString | Log
500 | Time.ToString(Millis: true) | Log
Time.EpochMs | Time.ToString(Millis: true) | Log
Pause(2.0)
Time.Now | Time.ToString | Log
Time.NowMs | Time.ToString(Millis: true) | Log

[info] [sample-wire] 0s
[info] [sample-wire] 0s
[info] [sample-wire] 8m:20s
[info] [sample-wire] 0s
[info] [sample-wire] 55y:222d:10h:0m:56s
[info] [sample-wire] 2s
[info] [sample-wire] 2s