1 #ifndef __MYTIME_H
2 #define __MYTIME_H
3 
4 #include <time.h>
5 
6 int getSec();
7 int getMinute();
8 int getHour();
9 int getMonth();
10 int getYear();
11 char *getDayName(time_t when);
12 struct tm *getLocalTime(time_t *when);
13 
14 #ifdef WIN32
15  #include <windows.h>
16  void UnixTimeToFileTime(time_t t, LPFILETIME pft);
17  void UnixTimeToSystemTime(time_t t, LPSYSTEMTIME pst);
18 #endif
19 
20 #endif
21