home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / ctime.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  1KB  |  46 lines

  1. /***
  2. *ctime.h - constant for dates and times
  3. *
  4. *       Copyright (c) 1985-1997, 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. *
  10. *       [Internal]
  11. *
  12. ****/
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif  /* _MSC_VER > 1000 */
  17.  
  18. #ifndef _INC_CTIME
  19. #define _INC_CTIME
  20.  
  21. #ifndef _CRTBLD
  22. /*
  23.  * This is an internal C runtime header file. It is used when building
  24.  * the C runtimes only. It is not to be used as a public header file.
  25.  */
  26. #error ERROR: Use of C runtime library internal header file.
  27. #endif  /* _CRTBLD */
  28.  
  29. #define _DAY_SEC           (24L * 60L * 60L)    /* secs in a day */
  30.  
  31. #define _YEAR_SEC          (365L * _DAY_SEC)    /* secs in a year */
  32.  
  33. #define _FOUR_YEAR_SEC     (1461L * _DAY_SEC)   /* secs in a 4 year interval */
  34.  
  35. #define _DEC_SEC           315532800L           /* secs in 1970-1979 */
  36.  
  37. #define _BASE_YEAR         70L                  /* 1970 is the base year */
  38.  
  39. #define _BASE_DOW          4                    /* 01-01-70 was a Thursday */
  40.  
  41. #define _LEAP_YEAR_ADJUST  17L                  /* Leap years 1900 - 1970 */
  42.  
  43. #define _MAX_YEAR          138L                 /* 2038 is the max year */
  44.  
  45. #endif  /* _INC_CTIME */
  46.