Port old constructor of YAML's timestamp type.