aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_time.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-21 20:13:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-04-21 20:13:48 +0000
commite772e8fef51291f8386cf3d85e4da56928c9a86b (patch)
tree983d06e674f981851f47cce5dc965992c7040cf1 /src/os/unix/ngx_time.h
parent732a27196381164c799d345ec0d010b416408555 (diff)
downloadnginx-e772e8fef51291f8386cf3d85e4da56928c9a86b.tar.gz
nginx-e772e8fef51291f8386cf3d85e4da56928c9a86b.zip
nginx-0.0.3-2004-04-22-00:13:48 import
Diffstat (limited to 'src/os/unix/ngx_time.h')
-rw-r--r--src/os/unix/ngx_time.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h
index bb03e994b..0b44c5ad4 100644
--- a/src/os/unix/ngx_time.h
+++ b/src/os/unix/ngx_time.h
@@ -35,6 +35,18 @@ typedef struct tm ngx_tm_t;
#define ngx_tm_wday_t int
+#if (SOLARIS)
+#define HAVE_TIMEZONE 1
+
+#define ngx_timezone() (-((daylight) ? altzone : timezone) / 60)
+
+#elif defined __linux__
+#define HAVE_TIMEZONE 1
+
+#define ngx_timezone() (- timezone / 60 + daylight * 60)
+
+#endif
+
void ngx_localtime(ngx_tm_t *tm);