change time to minute second format