aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_time.c')
-rw-r--r--src/os/win32/ngx_time.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/os/win32/ngx_time.c b/src/os/win32/ngx_time.c
index ca072029c..04a1af6a3 100644
--- a/src/os/win32/ngx_time.c
+++ b/src/os/win32/ngx_time.c
@@ -36,6 +36,28 @@ void ngx_gettimeofday(struct timeval *tp)
}
+void ngx_libc_localtime(struct tm *tm)
+{
+ time_t now;
+ struct tm *t;
+
+ now = ngx_time();
+ t = localtime(&now);
+ *tm = *t;
+}
+
+
+void ngx_libc_gmtime(struct tm *tm)
+{
+ time_t now;
+ struct tm *t;
+
+ now = ngx_time();
+ t = gmtime(&now);
+ *tm = *t;
+}
+
+
ngx_int_t ngx_gettimezone(void)
{
TIME_ZONE_INFORMATION tz;