C++中头文件<ctime>包含哪些函数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++中头文件<ctime>包含哪些函数相关的知识,希望对你有一定的参考价值。

参考技术A C Time LibraryThis header file contains definitions of functions to get and manipulate date and time information.

FunctionsTime manipulation clockClock program (function)difftimeReturn difference between two times (function)mktimeConvert tm structure to time_t (function)timeGet current time (function)
Conversion:
asctimeConvert tm structure to string (function)ctimeConvert time_t value to string (function)gmtimeConvert time_t to tm as UTC time (function)localtimeConvert time_t to tm as local time (function)strftimeFormat time to string (function)
Macros CLOCKS_PER_SECClock ticks per second (macro)NULLNull pointer (macro)
types clock_tClock type (type )size_tUnsigned integral type (type)time_tTime type (type)struct tmTime structure (type) 请参阅:http://www.cplusplus.com/reference/clibrary/ctime/

以上是关于C++中头文件<ctime>包含哪些函数的主要内容,如果未能解决你的问题,请参考以下文章

VC++中的CTime头文件是啥?

C++中头文件设计

C语言中头文件#include "dos.h"中包涵哪些库函数?

VS c++2005中头文件有的为啥必须加.h比如malloc

ctime是标准c++的类么

C++中头文件与源文件的作用详解