From owner-freebsd-hackers Sun Dec 12 11:40:24 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from houston.matchlogic.com (houston.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id 17EF014CB4 for ; Sun, 12 Dec 1999 11:40:16 -0800 (PST) (envelope-from crandall@matchlogic.com) Received: by houston.matchlogic.com with Internet Mail Service (5.5.2650.21) id ; Sun, 12 Dec 1999 12:40:14 -0700 Message-ID: <64003B21ECCAD11185C500805F31EC0304D96BE6@houston.matchlogic.com> From: Charles Randall To: freebsd-hackers@freebsd.org Subject: timezone var vs timezone() function Date: Sun, 12 Dec 1999 12:40:06 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On my FreeBSD 3.3R system, /usr/include/time.h includes a prototype for the timezone() function. The timezone(3) manual page indicates that this function is for compatibility purposes only and notes that the timezone() function first appeared in AT&T Unix V7. Version 2 of the Single Unix Specification (www.opengroup.org) states that time.h defines a global variable named timezone which indicates the difference in seconds between the local timezone and UTC. It also notes that this is, "Derived from Issue 1 of the SVID." I don't know what that means. I realize that I can work around this in an application a number of ways. For example, use FreeBSD's tm_gmtoff member of struct tm. However, is it a long-term goal for FreeBSD to conform to the Single Unix Specification? Charles To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message