HPGCC3 Documentation 3.0 R003

time.h

Go to the documentation of this file.
00001 //& *** (c) 2006-2011 The HPGCC3 Team ***
00002 //& Claudio Lapilli
00003 //& Ingo Blank
00004 //&
00005 //& This file is licensed under the terms and conditions of the
00006 //& HPGCC3 license that is included with the source distribution.
00007 //& *** (c) 2006-2011 The HPGCC3 Team ***
00008 
00009 // $Id: time.h 514 2007-11-18 03:11:26Z ingo $
00010 
00015 #ifndef _HPTIME_H
00016 #define _HPTIME_H
00017 
00018 
00019 #define CLOCKS_PER_SEC    60    
00020 
00021 #ifdef _POSIX_SOURCE
00022 #define CLK_TCK CLOCKS_PER_SEC    
00023 #endif
00024 
00025 #ifndef NULL
00026 #define NULL    ((void *)0)
00027 #endif
00028 
00029 
00030 #ifndef _TIME_T
00031 #define _TIME_T
00032 typedef long time_t;        /* time in sec since 1 Jan 1970 0000 GMT */
00033 #endif
00034 
00035 #ifndef _CLOCK_T
00036 #define _CLOCK_T
00037 typedef long clock_t;        /* time in ticks since process started */
00038 #endif
00039 
00040 struct tm {
00041   int tm_sec;            /* seconds after the minute [0, 59] */
00042   int tm_min;            /* minutes after the hour [0, 59] */
00043   int tm_hour;            /* hours since midnight [0, 23] */
00044   int tm_mday;            /* day of the month [1, 31] */
00045   int tm_mon;            /* months since January [0, 11] */
00046   int tm_year;            /* years since 1900 */
00047   int tm_wday;            /* days since Sunday [0, 6] */
00048   int tm_yday;            /* days since January 1 [0, 365] */
00049   int tm_isdst;            /* Daylight Saving Time flag */
00050 };
00051 
00052 
00053 void sys_tm_RTC(struct tm *);
00054 
00055 char *_isotime_r(const struct tm *, int strict_iso,char *buf);
00056 #define isotime_r(tm,buf) _isotime_r((tm),0,(buf))
00057 char *asctime_r(const struct tm *, char *buf); 
00058 
00059 
00060 //extern char *tzname[];
00061 
00062 
00063 
00064 #endif