comparison src/os/unix/ngx_time.c @ 323:ba876b26b76d

nginx-0.0.3-2004-04-21-22:54:33 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Apr 2004 18:54:33 +0000
parents 4b1a3a4acc60
children 54f76b0b8dca
comparison
equal deleted inserted replaced
322:ab2f8c9a2a45 323:ba876b26b76d
5 5
6 void ngx_localtime(ngx_tm_t *tm) 6 void ngx_localtime(ngx_tm_t *tm)
7 { 7 {
8 #if (HAVE_LOCALTIME_R) 8 #if (HAVE_LOCALTIME_R)
9 9
10 localtime_r(&ngx_cached_time, tm); 10 localtime_r((time_t *) &ngx_cached_time, tm);
11 11
12 #else 12 #else
13 ngx_tm_t *t; 13 ngx_tm_t *t;
14 14
15 t = localtime(&ngx_cached_time); 15 t = localtime((time_t *) &ngx_cached_time);
16 *tm = *t; 16 *tm = *t;
17 17
18 #endif 18 #endif
19 19
20 tm->ngx_tm_mon++; 20 tm->ngx_tm_mon++;