This is the mail archive of the
mailing list for the Cygwin project.
Re: struct tm problem
- From: Irfan Adilovic <irfanadilovic at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 3 Mar 2014 23:28:17 +0100
- Subject: Re: struct tm problem
- Authentication-results: sourceware.org; auth=none
(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:
> 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 :-))?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple