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.

41 lines
1.1 KiB

  1. /***
  2. *ctime.h - constant for dates and times
  3. *
  4. * Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Include file used by the ctime routines containing definitions of
  8. * various constants used in determining dates and times.
  9. * [Internal]
  10. *
  11. *Revision History:
  12. * 03-??-84 RLB written
  13. * 05-??-84 DFW split out the constant from each routine into this file
  14. * 07-27-89 GJF Fixed copyright
  15. * 10-30-89 GJF Fixed copyright (again)
  16. * 02-28-90 GJF Added #ifndef _INC_CTIME stuff.
  17. * 03-29-93 GJF Revised constants.
  18. *
  19. ****/
  20. #ifndef _INC_CTIME
  21. #define _DAY_SEC (24L * 60L * 60L) /* secs in a day */
  22. #define _YEAR_SEC (365L * _DAY_SEC) /* secs in a year */
  23. #define _FOUR_YEAR_SEC (1461L * _DAY_SEC) /* secs in a 4 year interval */
  24. #define _DEC_SEC 315532800L /* secs in 1970-1979 */
  25. #define _BASE_YEAR 70L /* 1970 is the base year */
  26. #define _BASE_DOW 4 /* 01-01-70 was a Thursday */
  27. #define _LEAP_YEAR_ADJUST 17L /* Leap years 1900 - 1970 */
  28. #define _MAX_YEAR 138L /* 2038 is the max year */
  29. #define _INC_CTIME
  30. #endif /* _INC_CTIME */