Commit 6dc40226 by maarten

dropped newuoa

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@274 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 54b8cb5c
......@@ -95,10 +95,10 @@ string cif2pdbDate(const string& d)
int year = stoi(m[1].str());
int month = stoi(m[2].str());
if (m.size() == 3)
result = (boost::format("%3.3s-%02.2d") % kMonths[month - 1] % (year % 100)).str();
else
if (m[3].matched)
result = (boost::format("%02.2d-%3.3s-%02.2d") % stoi(m[3].str()) % kMonths[month - 1] % (year % 100)).str();
else
result = (boost::format("%3.3s-%02.2d") % kMonths[month - 1] % (year % 100)).str();
}
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment