Linux C中struct tm结构与time_t相互转换
2015-12-27 00:00
369 查看
摘要: Linux C中struct tm结构与time_t相互转换的函数
struct tm--->time_t:
time_t mktime(struct tm *tm);
time_t--->struct tm:
struct tm * gmtime(const time_t *timep);
struct tm * gmtime_r(const time_t *timep, struct tm *result);
struct tm--->time_t:
time_t mktime(struct tm *tm);
time_t--->struct tm:
struct tm * gmtime(const time_t *timep);
struct tm * gmtime_r(const time_t *timep, struct tm *result);
相关文章推荐
- C#中struct和class的区别详解
- VBS取QQ或TM自动登录代码并防止关闭的脚本
- C++ 关于STL中sort()对struct排序的方法
- C# Struct的内存布局问题解答
- XHTML标准的版本
- JDBCTM 指南:入门
- 深入C++中struct与class的区别分析
- 浅析c与c++中struct的区别
- 浅析内存对齐与ANSI C中struct型数据的内存布局
- php读取二进制流(C语言结构体struct数据文件)的深入解析
- Go语言struct类型介绍
- 在Python的struct模块中进行数据格式转换的方法
- Python struct模块解析
- Go语言中struct的匿名属性特征实例分析
- 优化结构体中元素的布局
- ext关于session失效的处理
- typedef struct与struct的区别
- Wine + QQ
- 关于C语言多文件编写的一点小小总结
- 完成端口的一个例子