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

Duration functions squashed