Lint cleanup, refactor Clock to the DateUtils class

Clean up a few lint warnings and deprecations much older than the minimum Android version.