This shows you the differences between two versions of the page.
|
cpp:ctime [2013/03/06 21:25] Nicholas Johnson created |
cpp:ctime [2024/02/16 00:48] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | **Time Manipulation** | + | **Time Manipulation Functions** |
| - | |clock |Clock program (function ) | | + | |clock |Clock program | |
| - | |difftime |return difference between two times (function ) | | + | |difftime |return difference between two times | |
| - | |mktime |Convert tm structure to time_t (function ) | | + | |mktime |Convert tm structure to time_t | |
| - | |time |Get current time (function ) | | + | |time |Get current time | |
| - | **Conversion** | + | **Conversion Functions** |
| - | |asctime |Convert tm structure to string (function ) | | + | |asctime |Convert tm structure to string | |
| - | |ctime |Convert time_t value to string (function ) | | + | |ctime |Convert time_t value to string | |
| - | |gmtime |Convert time_t to tm as UTC time (function ) | | + | |gmtime |Convert time_t to tm as UTC time | |
| - | |localtime |Convert time_t to tm as local time (function ) | | + | |localtime |Convert time_t to tm as local time | |
| - | |strftime |Format time as string (function ) | | + | |strftime |Format time as string | |
| - | **Macro Constants** | + | **Macro Constants (macros)** |
| - | |CLOCKS_PER_SEC|Clock ticks per second (macro ) | | + | |CLOCKS_PER_SEC|Clock ticks per second | |
| - | |NULL |Null pointer (macro ) | | + | |NULL |Null pointer | |
| **Types** | **Types** | ||
| - | |clock_t |Clock type (type ) | | + | |clock_t |Clock type | |
| - | |size_t |Unsigned integral type (type ) | | + | |size_t |Unsigned integral type | |
| - | |time_t |Time type (type ) | | + | |time_t |Time type | |
| - | |struct tm |Time structure (type ) | | + | |struct tm |Time structure | |