The string is meant to be human readable, not machine parseable (e.g.
whether there is an 's' on the end of the unit name usually depends on
whether it's plural or not, and empty units are not included unless the
Duration is zero). Any code needing a specific string format should
use total or split to get the units needed to create the desired
string format and create the string itself.
The format returned by toString may or may not change in the future.
Converts this Duration to a string.
The string is meant to be human readable, not machine parseable (e.g. whether there is an 's' on the end of the unit name usually depends on whether it's plural or not, and empty units are not included unless the Duration is zero). Any code needing a specific string format should use total or split to get the units needed to create the desired string format and create the string itself.
The format returned by toString may or may not change in the future.