Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 1999 12:40:06 -0700
From:      Charles Randall <crandall@matchlogic.com>
To:        freebsd-hackers@freebsd.org
Subject:   timezone var vs timezone() function
Message-ID:  <64003B21ECCAD11185C500805F31EC0304D96BE6@houston.matchlogic.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64003B21ECCAD11185C500805F31EC0304D96BE6>