X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=O0P8DpQ8zG2t1M66763iqVomu9aQu VjHd4bQS9Tay9rTT08xcmEX9gnKXOBIIFRN4HTgmBq5AB+IhSOIVTZHoZZ2VN/6G GaIGqF4HgPaAU7UOu/ILrZGPydCL/RSqgKyVxK61w21aMdLdFTCvRQV53W2kQQLB PQe08VNfk1NsIk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=zAD4E2HGDPNsRuy37AxJU/YwRrk=; b=Gr5 bag/wANnMl+2+lkHPFOGRqjiuEnF5p7y/um42iVVWQvyFYko9cD1ufz6P2q9QIVm KfrvjYug9puR0LcgkdCXsY4awC27sMEL2Y2K7vVKmTxrXjpw2kmnFbliHeq6fvgM +Uh8I71WbImKn0mWKNbIqG3dLFFB3Fkv4iAEy+zc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f42.google.com MIME-Version: 1.0 X-Received: by 10.60.102.37 with SMTP id fl5mr3137378oeb.65.1393885697957; Mon, 03 Mar 2014 14:28:17 -0800 (PST) Date: Mon, 3 Mar 2014 23:28:17 +0100 Message-ID: Subject: Re: struct tm problem From: Irfan Adilovic To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes (Please note the date of the quoted emails) On Mon, May 23, 2005 at 07:58:01PM -0700, Yitzchak Scott-Thoennes wrote: > 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. I have successfully done this and use the tm_gmtoff in my code actively. Is there a reason this isn't enabled? Is there any interest in the community to make tm_gmtoff available by default (It's so easy, it's a shame it's not :-))? -- Irfan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple