delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/23/22:58:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 23 May 2005 19:58:01 -0700
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: struct tm problem
Message-ID: <20050524025800.GB3736@efn.org>
References: <000501c5600b$120c9b50$f52fb5d5 AT keloasc60pobkb>
Mime-Version: 1.0
In-Reply-To: <000501c5600b$120c9b50$f52fb5d5@keloasc60pobkb>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes

On Mon, May 23, 2005 at 06:34:21PM +0430, Alireza Ghasemi wrote:
> Hello,
> I have downloaded some c++ libraries and tried to download them.But All of
> them give an error like :
> "'struct tm' has no member called 'tm_gmtoff'"
> (tm is defined as 'time_t t; time(&t);tm* ptm = localtime(&t);')
> I guess that tm should be defined in ctime header.
> What's the problem and what should I do?
> Thanks

tm_gmtoff is not required by the standard:
http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html

However, it is an extension available in the Olson tzcode, which
cygwin seems to use.  Enabling it would seem to be a matter of
setting -DTM_GMTOFF=tm_gmtoff and adding it to time.h.

http://cygwin.com/acronyms#PTC

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019