change time to hours and minutes