Add conversion method, TimeOfDay().

Behaves similarly to ruby's Array() method - aims to do the sensible thing
with a variety of inputs.