Mercurial > hg > nginx
comparison src/core/ngx_times.c @ 4572:67653855682e
Fixed spelling in multiline C comments.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 03 Apr 2012 07:37:31 +0000 |
parents | 778ef9c3fd2d |
children | e23892a0c917 |
comparison
equal
deleted
inserted
replaced
4571:2942a827da09 | 4572:67653855682e |
---|---|
31 volatile ngx_str_t ngx_cached_http_log_iso8601; | 31 volatile ngx_str_t ngx_cached_http_log_iso8601; |
32 | 32 |
33 #if !(NGX_WIN32) | 33 #if !(NGX_WIN32) |
34 | 34 |
35 /* | 35 /* |
36 * locatime() and localtime_r() are not Async-Signal-Safe functions, therefore, | 36 * localtime() and localtime_r() are not Async-Signal-Safe functions, therefore, |
37 * they must not be called by a signal handler, so we use the cached | 37 * they must not be called by a signal handler, so we use the cached |
38 * GMT offset value. Fortunately the value is changed only two times a year. | 38 * GMT offset value. Fortunately the value is changed only two times a year. |
39 */ | 39 */ |
40 | 40 |
41 static ngx_int_t cached_gmtoff; | 41 static ngx_int_t cached_gmtoff; |
306 days = days - (31 + 28) + 719527; | 306 days = days - (31 + 28) + 719527; |
307 | 307 |
308 /* | 308 /* |
309 * The "days" should be adjusted to 1 only, however, some March 1st's go | 309 * The "days" should be adjusted to 1 only, however, some March 1st's go |
310 * to previous year, so we adjust them to 2. This causes also shift of the | 310 * to previous year, so we adjust them to 2. This causes also shift of the |
311 * last Feburary days to next year, but we catch the case when "yday" | 311 * last February days to next year, but we catch the case when "yday" |
312 * becomes negative. | 312 * becomes negative. |
313 */ | 313 */ |
314 | 314 |
315 year = (days + 2) * 400 / (365 * 400 + 100 - 4 + 1); | 315 year = (days + 2) * 400 / (365 * 400 + 100 - 4 + 1); |
316 | 316 |