摘要: int StringUtil::intFromString(string data){ //NOTE atoi是非标准C函数 return atoi(data.c_str());}string StringUtil::stringFromInt(int data){ char tm... 阅读全文
posted @ 2014-11-21 16:56 郭晓倩 阅读(539) 评论(0) 推荐(0) 编辑
摘要: time_t Time::timeFromGMT(string gmt){ char week[4]; memset(week,0,4); char month[4]; memset(month,0,4); tm date; sscanf(gmt.c_str(),... 阅读全文
posted @ 2014-11-21 16:52 郭晓倩 阅读(826) 评论(0) 推荐(0) 编辑