2 * D header file for C99.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: ISO/IEC 9899:1999 (E)
11 private import core.stdc.config;
12 private import core.stdc.stddef;
20 int tm_sec; // seconds after the minute - [0, 60]
21 int tm_min; // minutes after the hour - [0, 59]
22 int tm_hour; // hours since midnight - [0, 23]
23 int tm_mday; // day of the month - [1, 31]
24 int tm_mon; // months since January - [0, 11]
25 int tm_year; // years since 1900
26 int tm_wday; // days since Sunday - [0, 6]
27 int tm_yday; // days since January 1 - [0, 365]
28 int tm_isdst; // Daylight Saving Time flag
35 int tm_sec; // seconds after the minute [0-60]
36 int tm_min; // minutes after the hour [0-59]
37 int tm_hour; // hours since midnight [0-23]
38 int tm_mday; // day of the month [1-31]
39 int tm_mon; // months since January [0-11]
40 int tm_year; // years since 1900
41 int tm_wday; // days since Sunday [0-6]
42 int tm_yday; // days since January 1 [0-365]
43 int tm_isdst; // Daylight Savings Time flag
44 c_long tm_gmtoff; // offset from CUT in seconds
45 char* tm_zone; // timezone abbreviation
54 clock_t CLOCKS_PER_SEC = 1000;
56 else version( darwin )
58 clock_t CLOCKS_PER_SEC = 100;
60 else version( freebsd )
62 clock_t CLOCKS_PER_SEC = 128;
66 clock_t CLOCKS_PER_SEC = 1000000;
70 double difftime(time_t time1, time_t time0);
71 time_t mktime(tm* timeptr);
72 time_t time(time_t* timer);
73 char* asctime(in tm* timeptr);
74 char* ctime(in time_t* timer);
75 tm* gmtime(in time_t* timer);
76 tm* localtime(in time_t* timer);
77 size_t strftime(char* s, size_t maxsize, in char* format, in tm* timeptr);
78 size_t wcsftime(wchar_t* s, size_t maxsize, in wchar_t* format, in tm* timeptr);
84 char* _strdate(char* s);
85 char* _strtime(char* s);
87 wchar_t* _wasctime(tm*);
88 wchar_t* _wctime(time_t*);
89 wchar_t* _wstrdate(wchar_t*);
90 wchar_t* _wstrtime(wchar_t*);
96 else version( freebsd )