Add time convert spec and time convert method