Converts the provided number from one time unit to another. The time unit will also be attached to the number.
Any remainders/fractions will be discarded.
%formatter_number_from:<old_time_unit>_to:<new_time_unit>_<number>%
| Option | Description |
|
The Time unit to use as the original number's unit. |
|
|
Type: String Required? Yes |
|
|
The Time unit to use as the number's new format. |
|
|
Type: String Required? Yes |
|
| The number to convert. | |
|
Type: Number Required? Yes |
| Time Unit | Available options |
|---|---|
| Day | days, day |
| Hour | hours, hour, hrs |
| Minute | minutes, minute, mins, min |
| Second | seconds, second, secs, sec |
| Millisecond | milliseconds, millisecond, millis, ms |
/papi parse me %formatter_number_from:secs_to:mins_120% -> 2m
/papi parse me %formatter_number_from:mins_to:hrs_119% -> 1h