tmp/tmpp4f38c4h/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<ctime>` synopsis <a id="ctime.syn">[[ctime.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
#define NULL see [support.types.nullptr]
|
| 5 |
+
#define CLOCKS_PER_SEC see below
|
| 6 |
+
#define TIME_UTC see below
|
| 7 |
+
|
| 8 |
+
namespace std {
|
| 9 |
+
using size_t = see [support.types.layout];
|
| 10 |
+
using clock_t = see below;
|
| 11 |
+
using time_t = see below;
|
| 12 |
+
|
| 13 |
+
struct timespec;
|
| 14 |
+
struct tm;
|
| 15 |
+
|
| 16 |
+
clock_t clock();
|
| 17 |
+
double difftime(time_t time1, time_t time0);
|
| 18 |
+
time_t mktime(struct tm* timeptr);
|
| 19 |
+
time_t time(time_t* timer);
|
| 20 |
+
int timespec_get(timespec* ts, int base);
|
| 21 |
+
char* asctime(const struct tm* timeptr);
|
| 22 |
+
char* ctime(const time_t* timer);
|
| 23 |
+
struct tm* gmtime(const time_t* timer);
|
| 24 |
+
struct tm* localtime(const time_t* timer);
|
| 25 |
+
size_t strftime(char* s, size_t maxsize, const char* format, const struct tm* timeptr);
|
| 26 |
+
}
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
The contents of the header `<ctime>` are the same as the C standard
|
| 30 |
+
library header `<time.h>`. [^3]
|
| 31 |
+
|
| 32 |
+
The functions `asctime`, `ctime`, `gmtime`, and `localtime` are not
|
| 33 |
+
required to avoid data races ([[res.on.data.races]]).
|
| 34 |
+
|
| 35 |
+
ISO C 7.27.
|
| 36 |
+
|