2 ** Copyright 2003, Travis Geiselbrecht. All rights reserved.
3 ** Copyright 2003, Justin Smith. All rights reserved.
4 ** Distributed under the terms of the NewOS License.
7 #ifndef __newos__libc_time__hh__
8 #define __newos__libc_time__hh__
14 int tm_sec
; /* seconds*/
15 int tm_min
; /* minutes*/
16 int tm_hour
; /* hours*/
17 int tm_mday
; /* day of the month */
18 int tm_mon
; /* months (0 to 11) */
19 int tm_year
; /* years */
20 int tm_wday
; /* day of week (0 to 6) */
21 int tm_yday
; /* day of year (0 to 365) */
22 int tm_isdst
; /* Daylight Savings Time */
25 typedef unsigned long long clock_t;
26 typedef unsigned long long time_t;
27 typedef unsigned long long museconds_t
;
29 char *asctime(const struct tm
*timeptr
);
31 struct tm
*localtime(const time_t *timer
);
32 time_t time(time_t *timer
);
34 char *ctime(const time_t *timer
);
35 double difftime(time_t time1
, time_t time2
);
36 struct tm
*gmtime(const time_t *timer
);
38 time_t mktime(struct tm
*timeptr
);
40 size_t strftime(char *str
, size_t maxsize
, const char *format
, const struct tm
*timeptr
);