Mercurial > hg > nginx-quic
view src/os/unix/ngx_time.c @ 306:6b91bfbc4123
nginx-0.0.3-2004-04-05-00:32:09 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 04 Apr 2004 20:32:09 +0000 |
parents | 4b1a3a4acc60 |
children | ba876b26b76d |
line wrap: on
line source
#include <ngx_config.h> #include <ngx_core.h> void ngx_localtime(ngx_tm_t *tm) { #if (HAVE_LOCALTIME_R) localtime_r(&ngx_cached_time, tm); #else ngx_tm_t *t; t = localtime(&ngx_cached_time); *tm = *t; #endif tm->ngx_tm_mon++; tm->ngx_tm_year += 1900; }