completed compareTo and convert for Time.java-LGS