- 博客(1)
- 资源 (4)
- 收藏
- 关注
原创 工作需要写了个字符串转时间的函数,希望有需要的人看看
假如有时间如“20110621193012”,这样转换为本地时间计时方式, 就可以使用此函数。 time_t conver_str_time_2_time_t(char* str){ struct tm t; char tmp[3]; int tmp_num; bzero(tmp, sizeof(tmp)); strncpy(tmp,str,4);
2011-06-21 21:04:00 132
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人