summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_parse_time.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-12 20:49:45 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-12 20:49:45 +0000
commit15ec67c6d2d1e9179244d1d2d2b3c08c295c8ec2 (patch)
tree971386e408ed7dbfba3699b048c8f2d3b4ff604e /src/http/ngx_http_parse_time.c
parent932a8a18df48a7cde5b5163d3428414586bf7066 (diff)
downloadnginx-15ec67c6d2d1e9179244d1d2d2b3c08c295c8ec2.tar.gz
nginx-15ec67c6d2d1e9179244d1d2d2b3c08c295c8ec2.tar.bz2
r1587, r1588, r1589, r1590, r1592, r1599, r1629, r1636, r1674, r1681,
r1682, r1683 merge: typo and style fixes
Diffstat (limited to 'src/http/ngx_http_parse_time.c')
-rw-r--r--src/http/ngx_http_parse_time.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http/ngx_http_parse_time.c b/src/http/ngx_http_parse_time.c
index 29611f486..115508954 100644
--- a/src/http/ngx_http_parse_time.c
+++ b/src/http/ngx_http_parse_time.c
@@ -11,7 +11,8 @@
static int mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
-time_t ngx_http_parse_time(u_char *value, size_t len)
+time_t
+ngx_http_parse_time(u_char *value, size_t len)
{
u_char *p, *end;
int day, month, year, hour, min, sec;
@@ -247,7 +248,7 @@ time_t ngx_http_parse_time(u_char *value, size_t len)
year -= 1;
}
- /* Gauss's formula for Grigorian days from 1 March 1 BC */
+ /* Gauss's formula for Grigorian days from March 1, 1 BC */
return (365 * year + year / 4 - year / 100 + year / 400
+ 367 * month / 12 - 31