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

Converts time into a human readable string.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
@wire(main-wire {
  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
} Looped: true)

{logic-behavior: main-wire}