From 7e091602a7f9293d8045a72e24a700b876df1f10 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 4 Oct 1991 14:04:30 +0000 Subject: [PATCH] Added time.h --- include/_tail_cc/.distr | 1 + include/_tail_cc/time.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 include/_tail_cc/time.h diff --git a/include/_tail_cc/.distr b/include/_tail_cc/.distr index d2a5d58a1..966e66565 100644 --- a/include/_tail_cc/.distr +++ b/include/_tail_cc/.distr @@ -5,4 +5,5 @@ assert.h termio.h varargs.h math.h +time.h sys diff --git a/include/_tail_cc/time.h b/include/_tail_cc/time.h new file mode 100644 index 000000000..f574cf5a1 --- /dev/null +++ b/include/_tail_cc/time.h @@ -0,0 +1,27 @@ +/* $Header$ */ +/* + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". + */ + +#ifndef _TIME_H +#define _TIME_H + +struct tm { + int tm_sec; /* seconds after the minute [0, 59] */ + int tm_min; /* minutes after the hour [0, 59] */ + int tm_hour; /* hours since midnight [0, 23] */ + int tm_mday; /* day of the month [1, 31] */ + int tm_mon; /* months since January [0, 11] */ + int tm_year; /* years since 1900 */ + int tm_wday; /* days since Sunday [0, 6] */ + int tm_yday; /* days since January 1 [0, 365] */ + int tm_isdst; /* Daylight Saving Time flag */ +}; + +extern struct tm *gmtime(); +extern struct tm *localtime(); +extern char *asctime(); +extern char *ctime(); + +#endif /* _TIME_H */