Update DateUtils.java to use HashMap instead of long if-else-chain

This pull request changes DateUtils.java so that it uses a HashMap to store the relationship between the type parameter and the resulting getSecondsIn().