How to use [time.format]

The reference page of time.format has its arguments, constraints and declaration.

This slot formats a time span as a string, using the same format patterns as TimeSpan.ToString in C#, and is invoked with the time span as its value. It requires the following argument.

  • [format] - Format pattern to use. This argument is mandatory, and the slot throws an exception if it is missing.

The time span is typically a value returned from [time], and the result of the slot is the formatted string.

This slot formats a time span as text, with the [format] argument. Below is an example, formatting 2 hours and 30 minutes.

time
   hours:2
   minutes:30
time.format:x:-
   format:c