Merge pull request #6121 from libgit2/ethomson/date util: minor cleanup and refactoring to the date class