[4.2] Support : Add duration trait

And refactor `getSeconds` so that `getTime` is not necessary anymore
Files should end in a single new line.