Added return method to convertTime