摘要:
1 //计算某一天的前一天的日期 日期格式:YYYY-MM-DD 2 bool GetTheDayBefore(const std::string &strOneDate,std::string &TheDayBefore) 3 { 4 int iYear,iMonth,iDay; 5 if (10 != strOneDate.length()) //形如xxxx-xx-xx格式的日期长度为10 6 { 7 return false; 8 } 9 10 iYear = atoi(strOneDate.substr(0,4).c_s... 阅读全文