Format durations.