Mercurial > hg > nginx
diff src/core/ngx_times.c @ 208:0b67be7d4489
nginx-0.0.1-2003-12-08-23:48:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Dec 2003 20:48:12 +0000 |
parents | 6e0fef527732 |
children | 05592fd7a436 |
line wrap: on
line diff
--- a/src/core/ngx_times.c Fri Dec 05 17:07:27 2003 +0000 +++ b/src/core/ngx_times.c Mon Dec 08 20:48:12 2003 +0000 @@ -116,11 +116,11 @@ t %= 86400; hour = t / 3600; t %= 3600; - min = t / 60; + min = t / 60; sec = t % 60; /* the algorithm based on Gauss's formula */ - + days = days - (31 + 28) + 719527; year = days * 400 / (365 * 400 + 100 - 4 + 1);