Mercurial > hg > nginx
comparison src/os/unix/ngx_time.c @ 28:a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 15 Dec 2002 21:08:04 +0000 |
parents | d220029ac7f3 |
children | b48066122884 |
comparison
equal
deleted
inserted
replaced
27:a8d5abe713e6 | 28:a117a7fdf042 |
---|---|
4 | 4 |
5 void ngx_localtime(ngx_tm_t *tm) | 5 void ngx_localtime(ngx_tm_t *tm) |
6 { | 6 { |
7 time_t clock = time(NULL); | 7 time_t clock = time(NULL); |
8 localtime_r(&clock, tm); | 8 localtime_r(&clock, tm); |
9 tm->ngx_tm_mon++; | |
10 tm->ngx_tm_year += 1900; | |
9 } | 11 } |
10 | 12 |
11 u_int ngx_msec(void) | 13 u_int ngx_msec(void) |
12 { | 14 { |
13 struct timeval tv; | 15 struct timeval tv; |