Beispiel #1
0
static gcTime parseTimeStamp(gcString &str)
{
	//Boost throws exception if no time string. :(
	if (str.find('T') == std::string::npos)
	{
		str = str.substr(0, 8) + "T" + str.substr(8);
	}

	return gcTime::from_iso_string(str);
}
Beispiel #2
0
gcString getRelativePath(const gcString &path)
{
	gcString wd = UTIL::LIN::getAppPath(L"");

	if (path.find(wd) == 0)
		return path.substr(wd.size()+1, std::string::npos);

	return path;
}