Mercurial > hg > nginx-quic
view src/os/unix/ngx_time.c @ 359:a3e622ab7ee7
nginx-0.0.7-2004-06-18-10:09:25 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 18 Jun 2004 06:09:25 +0000 |
parents | ba876b26b76d |
children | 54f76b0b8dca |
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((time_t *) &ngx_cached_time, tm); #else ngx_tm_t *t; t = localtime((time_t *) &ngx_cached_time); *tm = *t; #endif tm->ngx_tm_mon++; tm->ngx_tm_year += 1900; }