time函数总结
来源:互联网 发布:安卓虚拟机for mac 编辑:程序博客网 时间:2024/06/05 15:41
头文件time.h
函数原型
time_t time(time_t * Time);
用法:
1.time t;
t=time(NULL);
将1970/1/1到现在的秒数返回给t
2、time t;
time(&t);
实现功能同上
http://www.cplusplus.com/reference/ctime/ 上讲的很清楚了:
Functions
Time manipulation
- clock
- Clock program (function )
- difftime
- Return difference between two times (function )
- mktime
- Convert tm structure to time_t (function )
- time
- Get current time (function )
Conversion
- asctime
- Convert tm structure to string (function )
- ctime
- Convert time_t value to string (function )
- gmtime
- Convert time_t to tm as UTC time (function )
- localtime
- Convert time_t to tm as local time (function )
- strftime
- Format time as string (function )
Macro constants
- CLOCKS_PER_SEC
- Clock ticks per second (macro )
- NULL
- Null pointer (macro )
types
- clock_t
- Clock type (type )
- size_t
- Unsigned integral type (type )
- time_t
- Time type (type )
- struct tm
- Time structure (type )
0 0
- Date/Time函数总结
- time函数总结
- 各种time函数用法总结
- Linux下面time.h时间函数总结
- Linux下面time.h时间函数总结
- Linux下面time.h时间函数总结
- C语言中的time函数总结
- time()函数--关于时间函数有用的总结
- time函数
- time ()函数
- time函数
- time() 函数
- time函数
- time函数
- time 函数
- time()函数
- time函数
- time 函数
- MySQL在远程访问时非常慢的解决skip-name-resolve
- 由浅到深详细讲解JSP自定义标签
- 收集的知识点:hibernate配置文件
- android 添加快捷方式并且图标上添加数字
- 【oralce】查询空缺日期
- time函数总结
- python数据结构与算法 17 列表
- VS2010彻底卸载
- C#出现可访问性不一致的解决
- Chosen—jquery选择框插件
- sdf
- tomcat 6+sonar3.7.4+maven3.0.4集成及分析java工程
- 前端解决跨域问题的8种方案(最新最全)
- 阿里云主机安装jdk+tomcat