Mercurial > hg > nginx
comparison src/core/ngx_times.h @ 3474:d4c4cfdffe30
*) use previously cached GMT offset value to update time from a signal handler
*) change ngx_time_update() interface since there are no notification methods
those return time
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 13 Mar 2010 18:08:07 +0000 |
parents | 429269167fab |
children | ab353d7dc182 |
comparison
equal
deleted
inserted
replaced
3473:0299cf5856fc | 3474:d4c4cfdffe30 |
---|---|
18 ngx_int_t gmtoff; | 18 ngx_int_t gmtoff; |
19 } ngx_time_t; | 19 } ngx_time_t; |
20 | 20 |
21 | 21 |
22 void ngx_time_init(void); | 22 void ngx_time_init(void); |
23 void ngx_time_update(time_t sec, ngx_uint_t msec); | 23 void ngx_time_update(ngx_uint_t use_cached_gmtoff); |
24 u_char *ngx_http_time(u_char *buf, time_t t); | 24 u_char *ngx_http_time(u_char *buf, time_t t); |
25 u_char *ngx_http_cookie_time(u_char *buf, time_t t); | 25 u_char *ngx_http_cookie_time(u_char *buf, time_t t); |
26 void ngx_gmtime(time_t t, ngx_tm_t *tp); | 26 void ngx_gmtime(time_t t, ngx_tm_t *tp); |
27 | 27 |
28 time_t ngx_next_time(time_t when); | 28 time_t ngx_next_time(time_t when); |