kern

annotate src/klibc/time.h @ 97:8717eb590727

ok stopping with the filesystem to manage to write the article in time
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 17 Dec 2011 14:09:17 +0200
parents e70b1ab9613e
children
rev   line source
nuclear@36 1 #ifndef _TIME_H_
nuclear@36 2 #define _TIME_H_
nuclear@36 3
nuclear@36 4 typedef long time_t;
nuclear@36 5
nuclear@36 6 struct tm {
nuclear@36 7 int tm_sec;
nuclear@36 8 int tm_min;
nuclear@36 9 int tm_hour;
nuclear@36 10 int tm_mday;
nuclear@36 11 int tm_mon;
nuclear@36 12 int tm_year;
nuclear@36 13 int tm_wday;
nuclear@36 14 int tm_yday;
nuclear@36 15 int tm_isdst;
nuclear@36 16 };
nuclear@36 17
nuclear@37 18 time_t time(time_t *tp);
nuclear@36 19 char *asctime(struct tm *tm);
nuclear@37 20 char *asctime_r(struct tm *tm, char *buf);
nuclear@37 21
nuclear@36 22 time_t mktime(struct tm *tm);
nuclear@37 23 struct tm *gmtime(time_t *tp);
nuclear@37 24 struct tm *gmtime_r(time_t *tp, struct tm *tm);
nuclear@36 25
nuclear@36 26 /* non-standard helpers */
nuclear@36 27 int day_of_year(int year, int mon, int day);
nuclear@36 28
nuclear@36 29
nuclear@36 30 #endif /* _TIME_H_ */