Leaked source code of windows server 2003
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.

27 lines
1.1 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-1991 **/
  4. /********************************************************************/
  5. /* :ts=4 */
  6. /*** timedata.cpp - table of days in each month for time conversion
  7. */
  8. #include "npcommon.h"
  9. #include <convtime.h>
  10. WORD MonTotal[] = { 0, // dummy entry for month 0
  11. 0, // days before Jan 1
  12. 31, // days before Feb 1
  13. 31+28, // days before Mar 1
  14. 31+28+31, // days before Apr 1
  15. 31+28+31+30, // days before May 1
  16. 31+28+31+30+31, // days before Jun 1
  17. 31+28+31+30+31+30, // days before Jul 1
  18. 31+28+31+30+31+30+31, // days before Aug 1
  19. 31+28+31+30+31+30+31+31, // days before Sep 1
  20. 31+28+31+30+31+30+31+31+30, // days before Oct 1
  21. 31+28+31+30+31+30+31+31+30+31, // days before Nov 1
  22. 31+28+31+30+31+30+31+31+30+31+30, // days before Dec 1
  23. 31+28+31+30+31+30+31+31+30+31+30+31 // days before end of year
  24. };