Formats a duration, using the specified period as the starting point. This period must be fixed length.
Example:
With an input duration of 1 day, 12 hours, 30 minutes, MajorPeriodId of Hour, the output would be "36:30:00".
Target
Ingame Calendar Object Reference
|
|
Duration
Ingame Duration Structure (by ref)
|
Input duration value to format |
Major Period Id
Name
|
The largest period to use |
Period Separator
String
|
Separator symbol to place between period values |
Hide Leading Zero Periods
Boolean
|
Whether to omit leading zero periods from the output |
Fractional Digits
Byte
|
Number of fractional digits to include in output |
Fractional Separator
String
|
Separator to use between smallest period and fractional part |
Return Value
Text
|
Duration formatted as text |