我需要从文件中获取修改日期。
CFileStatus stat;
CFile::GetStatus(strFilePath, stat);
它返回 1585557924 为 CTime。(它看起来像一个时间戳)
stat.m_mtime
我有很多文件,我需要从每个文件中获取修改日期作为时间戳,然后对所有时间戳求和。
但它不能将 stat.m_mtime 转换为整数。
int sum_timestamp = 0;
sum_timestamp += (int)stat.m_mtime;
它像这些错误。
'no suitable conversion function from "ATL::CTime"to"int"exists'