diff options
Diffstat (limited to 'src/os/win32/ngx_time.c')
-rw-r--r-- | src/os/win32/ngx_time.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/os/win32/ngx_time.c b/src/os/win32/ngx_time.c index 04a1af6a3..39ce63336 100644 --- a/src/os/win32/ngx_time.c +++ b/src/os/win32/ngx_time.c @@ -8,7 +8,8 @@ #include <ngx_core.h> -void ngx_gettimeofday(struct timeval *tp) +void +ngx_gettimeofday(struct timeval *tp) { uint64_t intervals; FILETIME ft; @@ -36,29 +37,28 @@ void ngx_gettimeofday(struct timeval *tp) } -void ngx_libc_localtime(struct tm *tm) +void +ngx_libc_localtime(time_t s, struct tm *tm) { - time_t now; struct tm *t; - now = ngx_time(); - t = localtime(&now); + t = localtime(&s); *tm = *t; } -void ngx_libc_gmtime(struct tm *tm) +void +ngx_libc_gmtime(time_t s, struct tm *tm) { - time_t now; struct tm *t; - now = ngx_time(); - t = gmtime(&now); + t = gmtime(&s); *tm = *t; } -ngx_int_t ngx_gettimezone(void) +ngx_int_t +ngx_gettimezone(void) { TIME_ZONE_INFORMATION tz; |