Mercurial > hg > nginx
comparison src/http/ngx_http_parse_time.c @ 290:87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Mar 2004 07:10:12 +0000 |
parents | 811bdd2af794 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
289:0750faf8d7e3 | 290:87e73f067470 |
---|---|
4 #include <ngx_types.h> | 4 #include <ngx_types.h> |
5 | 5 |
6 | 6 |
7 static int mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; | 7 static int mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; |
8 | 8 |
9 time_t ngx_http_parse_time(char *value, size_t len) | 9 time_t ngx_http_parse_time(u_char *value, size_t len) |
10 { | 10 { |
11 char *p, *end; | 11 u_char *p, *end; |
12 int day, month, year, hour, min, sec; | 12 int day, month, year, hour, min, sec; |
13 enum { | 13 enum { |
14 no = 0, | 14 no = 0, |
15 rfc822, /* Tue 10 Nov 2002 23:50:13 */ | 15 rfc822, /* Tue 10 Nov 2002 23:50:13 */ |
16 rfc850, /* Tuesday, 10-Dec-02 23:50:13 */ | 16 rfc850, /* Tuesday, 10-Dec-02 23:50:13 */ |
17 isoc /* Tue Dec 10 23:50:13 2002 */ | 17 isoc /* Tue Dec 10 23:50:13 2002 */ |