Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.0 KiB

  1. /*****************************************************************/
  2. /** Copyright (C) Microsoft Corp., 1996 **/
  3. /*****************************************************************/
  4. /* CONVTIME.H -- Header file for time conversion subroutines.
  5. *
  6. * History:
  7. * gregj 04/22/96 Created for subroutines snarfed from vredir.
  8. */
  9. #ifndef _INC_CONVTIME
  10. #define _INC_CONVTIME
  11. #ifndef RC_INVOKED
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #define _70_to_80_bias 0x012CEA600L
  16. #define SECS_IN_DAY (60L*60L*24L)
  17. #define SEC2S_IN_DAY (30L*60L*24L)
  18. #define FOURYEARS (3*365+366)
  19. extern WORD MonTotal[];
  20. typedef struct tagdos_time {
  21. WORD dt_date;
  22. WORD dt_time;
  23. } dos_time;
  24. void
  25. NetToDosDate(
  26. DWORD time,
  27. dos_time *pinfo);
  28. DWORD
  29. DosToNetDate(dos_time dt);
  30. void
  31. NetToSystemDate(
  32. DWORD time,
  33. LPSYSTEMTIME pinfo);
  34. DWORD
  35. SystemToNetDate(LPSYSTEMTIME pinfo);
  36. DWORD
  37. GetCurrentNetDate(void);
  38. DWORD
  39. GetLocalNetDate(void);
  40. #ifdef __cplusplus
  41. }; /* extern "C" */
  42. #endif
  43. #endif /* RC_INVOKED */
  44. #endif /* _INC_CONVTIME */