aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_parse_time.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-17 15:48:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-17 15:48:27 +0000
commit5518aba253096193df31b0f64e7461d1ac224dfd (patch)
treee06f1dc62410b999ab561ca07742af1fef34dc79 /src/http/ngx_http_parse_time.c
parent5eef618ed671c55bc1244652cb49afef224c833c (diff)
downloadnginx-5518aba253096193df31b0f64e7461d1ac224dfd.tar.gz
nginx-5518aba253096193df31b0f64e7461d1ac224dfd.zip
nginx-0.0.1-2002-12-17-18:48:27 import
Diffstat (limited to 'src/http/ngx_http_parse_time.c')
-rw-r--r--src/http/ngx_http_parse_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_parse_time.c b/src/http/ngx_http_parse_time.c
index 199a7f9f0..9c606c26e 100644
--- a/src/http/ngx_http_parse_time.c
+++ b/src/http/ngx_http_parse_time.c
@@ -207,7 +207,7 @@ time_t ngx_http_parse_time(char *value, size_t len)
month += 12;
year -= 1;
}
- /* Gauss's formula for days from 1 March 1 BC */
+ /* Gauss's formula for Grigorian days from 1 March 1 BC */
return (365 * year + year / 4 - year / 100 + year / 400
+ 367 * month / 12 + day - 31
/* 719527 days are between 1 March 1 BC and 1 March 1970,