摘要: 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... 阅读全文
posted @ 2013-05-23 16:12 岁月漫步 阅读(656) 评论(0) 推荐(0) 编辑