Adding equals method to Time