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;
|
|
|
|
};
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
#if defined(SIMULATOR) && !defined(_TIME_T_DEFINED)
|
|
|
|
/* for non-win32 simulators */
|
|
|
|
typedef long time_t;
|
|
|
|
|
|
|
|
/* this define below is used by the mingw headers to prevent duplicate
|
|
|
|
typedefs */
|
|
|
|
#define _TIME_T_DEFINED
|
|
|
|
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_ */
|
|
|
|
|