Added support for unit abbreviations and letters to format_duration()