mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
style and grammar fix
This commit is contained in:
parent
4c89c09ad8
commit
8152d0aeed
@ -11,7 +11,8 @@
|
|||||||
|
|
||||||
static int mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
|
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;
|
u_char *p, *end;
|
||||||
int day, month, year, hour, min, sec;
|
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;
|
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
|
return (365 * year + year / 4 - year / 100 + year / 400
|
||||||
+ 367 * month / 12 - 31
|
+ 367 * month / 12 - 31
|
||||||
|
Loading…
Reference in New Issue
Block a user