Skip to content

Time.ToString

Name - Description Default Type
<input> The time to convert. IntFloat
<output> A string representation of the time. String
Millis 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
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] [shards/Time/ToString/1.edn] 0s
[info] [shards/Time/ToString/1.edn] 0s
[info] [shards/Time/ToString/1.edn] 8m:20s
[info] [shards/Time/ToString/1.edn] 0s
[info] [shards/Time/ToString/1.edn] 53y:280d:11h:43m:1s