2002-06-18 09:41:28 +00:00
|
|
|
/*
|
|
|
|
* time.h
|
|
|
|
*
|
2003-12-06 23:22:05 +00:00
|
|
|
* Struct declaration for dealing with time.
|
2002-06-18 09:41:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TIME_H_
|
|
|
|
#define _TIME_H_
|
|
|
|
|
|
|
|
struct tm
|
|
|
|
{
|
|
|
|
int tm_sec;
|
|
|
|
int tm_min;
|
|
|
|
int tm_hour;
|
|
|
|
int tm_mday;
|
|
|
|
int tm_mon;
|
|
|
|
int tm_year;
|
|
|
|
int tm_wday;
|
|
|
|
int tm_yday;
|
|
|
|
int tm_isdst;
|
|
|
|
};
|
|
|
|
|
2006-10-19 09:42:58 +00:00
|
|
|
#if !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED)
|
2005-02-18 13:47:17 +00:00
|
|
|
typedef long time_t;
|
|
|
|
|
|
|
|
/* this define below is used by the mingw headers to prevent duplicate
|
|
|
|
typedefs */
|
|
|
|
#define _TIME_T_DEFINED
|
2006-03-02 13:07:11 +00:00
|
|
|
#define _TIME_T_DECLARED
|
2005-02-18 13:47:17 +00:00
|
|
|
time_t time(time_t *t);
|
2005-02-18 14:41:42 +00:00
|
|
|
struct tm *localtime(const time_t *timep);
|
2005-02-18 13:47:17 +00:00
|
|
|
|
2005-02-18 14:41:42 +00:00
|
|
|
#endif /* SIMULATOR */
|
2005-02-18 13:47:17 +00:00
|
|
|
|
2002-06-18 09:41:28 +00:00
|
|
|
#endif /* _TIME_H_ */
|
|
|
|
|