Add duration functions to Utils
code tidy from previous commit
Merge pull request #1 from garemoko/duration_functions_squashed

Duration functions squashed