Utility class to convert time to seconds.