time.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * time.h
  3. * Missing time functions and structures for use under WinCE
  4. */
  5. #ifndef _WX_MSW_WINCE_TIME_H_
  6. #define _WX_MSW_WINCE_TIME_H_
  7. #ifndef _TM_DEFINED
  8. #define _TM_DEFINED
  9. struct tm {
  10. int tm_sec; /* seconds after the minute - [0,59] */
  11. int tm_min; /* minutes after the hour - [0,59] */
  12. int tm_hour; /* hours since midnight - [0,23] */
  13. int tm_mday; /* day of the month - [1,31] */
  14. int tm_mon; /* months since January - [0,11] */
  15. int tm_year; /* years since 1900 */
  16. int tm_wday; /* days since Sunday - [0,6] */
  17. int tm_yday; /* days since January 1 - [0,365] */
  18. int tm_isdst; /* daylight savings time flag */
  19. };
  20. extern "C"
  21. {
  22. time_t __cdecl time(time_t *);
  23. time_t __cdecl mktime(struct tm *);
  24. // VC8 CRT provides the other functions
  25. #if !defined(__VISUALC__) || (__VISUALC__ < 1400)
  26. struct tm * __cdecl localtime(const time_t *);
  27. struct tm * __cdecl gmtime(const time_t *);
  28. #define _tcsftime wcsftime
  29. size_t __cdecl wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);
  30. extern long timezone;
  31. #endif // !VC8
  32. }
  33. #endif // !_TM_DEFINED
  34. #endif // _WX_MSW_WINCE_TIME_H_