会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zwj鹿港小镇
博客园
首页
新随笔
管理
2020年8月7日
本地时间转换为时间戳
摘要: 例如现在有个字符串时间为:“2020-08-09T06:51:16.798",把它转换为时间戳,搜了半天没搜到好的办法,只能字符串截取取出年月日时分秒。 time_t LocateToTime_t(char *tTime){ struct tm sTm; time_t tReturnTime; me
阅读全文
posted @ 2020-08-07 23:30 zwj鹿港小镇
阅读(481)
评论(0)
推荐(0)