Esempio n. 1
0
CStringA CTime::FormatGmt(LPCSTR pFormat) const
{
	CStringA str;
	struct tm Time;
	if (gmtime_s(&Time,&m_time))
		return szEmpty;

	strftime(str.GetBuffer(1000),1000,pFormat,&Time);
	str.FreeExtra();
	return str;
}