Welcome! Log In Create A New Profile

Advanced

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

April 08, 2016 12:00PM
details: http://hg.nginx.org/njs/rev/0e62188391a1
branches:
changeset: 95:0e62188391a1
user: Igor Sysoev <igor@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_ */

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Igor Sysoev 629 April 08, 2016 12:00PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready