[njs] Forgotten nxt/nxt_time.h file has been added.

Igor Sysoev igor at sysoev.ru
Fri Apr 8 15:59:20 UTC 2016


details:   http://hg.nginx.org/njs/rev/0e62188391a1
branches:  
changeset: 95:0e62188391a1
user:      Igor Sysoev <igor at sysoev.ru>
date:      Fri Apr 08 18:59:06 2016 +0300
description:
Forgotten nxt/nxt_time.h file has been added.

diffstat:

 nxt/nxt_time.h |  24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r 39557c1b3088 -r 0e62188391a1 nxt/nxt_time.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nxt/nxt_time.h	Fri Apr 08 18:59:06 2016 +0300
@@ -0,0 +1,24 @@
+
+/*
+ * Copyright (C) Igor Sysoev
+ * Copyright (C) NGINX, Inc.
+ */
+
+#ifndef _NXT_TIME_H_INCLUDED_
+#define _NXT_TIME_H_INCLUDED_
+
+
+#if (NXT_HAVE_TM_GMTOFF)
+
+#define nxt_timezone(tm)                                                      \
+    ((tm)->tm_gmtoff)
+
+#elif (NXT_HAVE_ALTZONE)
+
+#define nxt_timezone(tm)                                                      \
+    (-(((tm)->tm_isdst > 0) ? altzone : timezone))
+
+#endif
+
+
+#endif /* _NXT_TIME_H_INCLUDED_ */



More information about the nginx-devel mailing list