FormatTime format?

In the following function:

FormatTime : Returns a formatted timestamp from a given time in milliseconds

  • Declaration: function FormatTime (timeInMS : double, format : String) returns String
  • Category: System
    Parameters * timeInMS : double
    • format : String
  • returns String

(Back to top)

It is not described how ‘format’ should look like. I tried this:

FormatTime(ClockTime(), "HH:MM:SS")

and

FormatTime(ClockTime(), "hh:mm:ss")

But it returns just the strings “HH:MM:SS” resp “hh:mm:ss”

Where can I find a list with legal format strings and their meaning?

(Edit: just found in an example it should be something like “%H:%M:%S” … please add this in the documentation).
@David-san This is not deprecated :slight_smile:

Never said this, I said TimeNow() is deprecated. :nerd_face:

I know … it was a joke (sorry for not being clear, unlike TimeNow, the FormatTime function is not deprecated).

1 Like