Convert time

I’ve used Chuck’s solution before