formatDurationInput

Formats duration back into the compact input format accepted by parseDurationInput.