Timespan value format - JanJorgensen/StepBro GitHub Wiki
When specifying a timespan value, there are two basic formats:
- in seconds
- in hours, minutes, seconds and fraction-of-a-second
When specifying a timespan in seconds, the 's' unit must be specified. The number of seconds can be specified in integer of decimal format, and an SI-prefix can be used.
Examples:
timespan t1 = 100s;
var t2 = 14.4s;
timespan t3 = 22.8ns; // nano-seconds
When using hour-minute-second format, the value must be prefixed with the '@' character. The format is: @h:mm:ss.f where 'h' i hours, 'mm' is minutes, 'ss' is seconds and 'f' is the fraction-of-a-second. If hours are specified, the minutes and seconds must be two digits. If minutes are specified, the seconds must be two digits. If hours and minutes are not specified, seconds can any number of digits, but at least one. The fraction-of-a-second is optional and can be any number of digits.
Examples: @8:30, @0:03.218, @2:15:00, @7:24:56.62