simplify time unmarshalling