1 /**
2  * D header file for C99.
3  *
4  * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_time.h.html, _time.h)
5  *
6  * Copyright: Copyright Sean Kelly 2005 - 2009.
7  * License: Distributed under the
8  *      $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
9  *    (See accompanying file LICENSE)
10  * Authors:   Sean Kelly,
11  *            Alex Rønne Petersen
12  * Source:    $(DRUNTIMESRC core/stdc/_time.d)
13  * Standards: ISO/IEC 9899:1999 (E)
14  */
15 
16 /// Automatically imported and edited from the druntime module
17 /// core.sys.windows.stdc.time for the auto-generated win32 package.
18 module win32.stdc.time;
19 
20 //version (Windows):
21 
22 import core.stdc.config;
23 
24 extern (C):
25 @trusted: // There are only a few functions here that use unsafe C strings.
26 nothrow:
27 @nogc:
28 
29 ///
30 struct tm
31 {
32     int     tm_sec;     /// seconds after the minute - [0, 60]
33     int     tm_min;     /// minutes after the hour - [0, 59]
34     int     tm_hour;    /// hours since midnight - [0, 23]
35     int     tm_mday;    /// day of the month - [1, 31]
36     int     tm_mon;     /// months since January - [0, 11]
37     int     tm_year;    /// years since 1900
38     int     tm_wday;    /// days since Sunday - [0, 6]
39     int     tm_yday;    /// days since January 1 - [0, 365]
40     int     tm_isdst;   /// Daylight Saving Time flag
41 }
42 
43 ///
44 alias c_long time_t;
45 ///
46 alias c_long clock_t;
47 
48 enum clock_t CLOCKS_PER_SEC = 1000;
49 clock_t clock();
50 
51 ///
52 void  tzset();                           // non-standard
53 ///
54 void  _tzset();                          // non-standard
55 ///
56 @system char* _strdate(return scope char* s);                 // non-standard
57 ///
58 @system char* _strtime(return scope char* s);                 // non-standard
59 
60 ///
61 extern __gshared const(char)*[2] tzname; // non-standard