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.

93 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. httptime.h
  5. Abstract:
  6. This file contains the numerical defines for the date/parsing routines located
  7. in the httptime.cxx file.
  8. Author:
  9. Arthur Bierer (arthurbi) 12-Dec-1997
  10. Revision History:
  11. --*/
  12. #ifndef _HTTPTIME_H_
  13. #define _HTTPTIME_H_
  14. #define BASE_DEC 10 // base 10
  15. //
  16. // Date indicies used to figure out what each entry is.
  17. //
  18. #define DATE_INDEX_DAY_OF_WEEK 0
  19. #define DATE_1123_INDEX_DAY 1
  20. #define DATE_1123_INDEX_MONTH 2
  21. #define DATE_1123_INDEX_YEAR 3
  22. #define DATE_1123_INDEX_HRS 4
  23. #define DATE_1123_INDEX_MINS 5
  24. #define DATE_1123_INDEX_SECS 6
  25. #define DATE_ANSI_INDEX_MONTH 1
  26. #define DATE_ANSI_INDEX_DAY 2
  27. #define DATE_ANSI_INDEX_HRS 3
  28. #define DATE_ANSI_INDEX_MINS 4
  29. #define DATE_ANSI_INDEX_SECS 5
  30. #define DATE_ANSI_INDEX_YEAR 6
  31. #define DATE_INDEX_TZ 7
  32. #define DATE_INDEX_LAST DATE_INDEX_TZ
  33. #define MAX_DATE_ENTRIES (DATE_INDEX_LAST+1)
  34. //
  35. // DATE_TOKEN's DWORD values used to determine what day/month we're on
  36. //
  37. #define DATE_TOKEN_JANUARY 1
  38. #define DATE_TOKEN_FEBRUARY 2
  39. #define DATE_TOKEN_MARCH 3
  40. #define DATE_TOKEN_APRIL 4
  41. #define DATE_TOKEN_MAY 5
  42. #define DATE_TOKEN_JUNE 6
  43. #define DATE_TOKEN_JULY 7
  44. #define DATE_TOKEN_AUGUST 8
  45. #define DATE_TOKEN_SEPTEMBER 9
  46. #define DATE_TOKEN_OCTOBER 10
  47. #define DATE_TOKEN_NOVEMBER 11
  48. #define DATE_TOKEN_DECEMBER 12
  49. #define DATE_TOKEN_LAST_MONTH (DATE_TOKEN_DECEMBER+1)
  50. #define DATE_TOKEN_SUNDAY 0
  51. #define DATE_TOKEN_MONDAY 1
  52. #define DATE_TOKEN_TUESDAY 2
  53. #define DATE_TOKEN_WEDNESDAY 3
  54. #define DATE_TOKEN_THURSDAY 4
  55. #define DATE_TOKEN_FRIDAY 5
  56. #define DATE_TOKEN_SATURDAY 6
  57. #define DATE_TOKEN_LAST_DAY (DATE_TOKEN_SATURDAY+1)
  58. #define DATE_TOKEN_GMT 0xFFFFFFFD
  59. #define DATE_TOKEN_LAST DATE_TOKEN_GMT
  60. #define DATE_TOKEN_ERROR (DATE_TOKEN_LAST+1)
  61. #endif // _HTTPTIME_H_