Debian Codegraph @

headers/ctime

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_CTIME_H
17 #define CPPREFERENCE_CTIME_H
18
19 #define CLOCKS_PER_SEC 0 // unspecified
20
21 namespace std {
22
23 typedef int clock_t; // actually unspecified
24 typedef int time_t; // actually unspecified
25
26 struct tm {
27 int tm_sec;
28 int tm_min;
29 int tm_hour;
30 int tm_mday;
31 int tm_mon;
32 int tm_year;
33 int tm_wday;
34 int tm_yday;
35 int tm_isdst;
36 };
37
38 double difftime(std::time_t time_end, std::time_t time_beg);
39 std::time_t time(std::time_t* arg);
40 std::clock_t clock();
41 char* asctime(const std::tm* time_ptr);
42 char* ctime(const std::time_t* time);
43 std::size_t strftime(char* str, std::size_t count, const char* format, const std::tm* time);
44 std::size_t wcsftime(wchar_t* str, std::size_t count, const wchar_t* format, const std::tm* time);
45 std::tm* gmtime(const std::time_t* time);
46 std::tm* localtime(const std::time_t* time);
47 std::time_t mktime(std::tm* time);
48
49 } // namespace std
50
51 #endif // CPPREFERENCE_CTIME_H