X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: X-Originating-IP: [80.25.207.120] X-Originating-Email: [a_aniento AT hotmail DOT com] X-Sender: a_aniento AT hotmail DOT com From: "Antoni Aniento Recasens" To: References: Subject: Re: question about mktime Date: Thu, 5 Jul 2007 13:26:05 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001D_01C7BF08.0A5FC2C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-OriginalArrivalTime: 05 Jul 2007 11:26:05.0321 (UTC) FILETIME=[468D3F90:01C7BEF7] Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_001D_01C7BF08.0A5FC2C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable At the end I've found a solution. I should add the line: camposHora.tm_isdst =3D -1;=20 and the program gives the correct result. Nevertheless many thanks... Toni ----- Original Message -----=20 From: Antoni Aniento Recasens=20 To: djgpp AT delorie DOT com=20 Sent: Thursday, July 05, 2007 12:58 PM Subject: question about mktime ----- Original Message -----=20 From: Antoni Aniento Recasens=20 To: listserv AT delorie DOT com=20 Sent: Thursday, July 05, 2007 12:55 PM Subject: question about mktime Dear DJGPP's! I'm new in this list. I've a question to you. I've trying to compile the attached source file test2.c with DJGPP. In = my laptop the result of mktime is always -1, while in the public access = compiler (http://www.delorie.com/djgpp/compile/) the result is = 1175601600 (corresponts to 3-march-2007 12:00). I suppose the problem should come from the installation, but I don't = know where. Could you give me any help! Many thanks in advance. Best regards... Toni Aniento ------=_NextPart_000_001D_01C7BF08.0A5FC2C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
At the end I've found a = solution.
I should add the line:   = camposHora.tm_isdst =3D=20 -1;
and the program gives the correct result.
 
Nevertheless many = thanks...
 
    Toni
 
 
----- Original Message -----
From:=20 Antoni=20 Aniento Recasens
Sent: Thursday, July 05, 2007 = 12:58=20 PM
Subject: question about = mktime

 
----- Original Message -----=20
From: Antoni Aniento=20 Recasens
Sent: Thursday, July 05, 2007 12:55 PM
Subject: question about mktime

Dear DJGPP's!
 
I'm new in this list. I've a question = to=20 you.
 
I've trying to compile the attached = source file=20 test2.c with DJGPP. In my laptop the result of mktime is always = -1, while=20 in the  public access compiler (http://www.delorie.com/djg= pp/compile/)=20 the result is 1175601600 (corresponts to 3-march-2007 = 12:00).
I suppose the problem should come = from the=20 installation, but I don't know where.
 
Could you give me any = help!
 
Many thanks in advance. Best regards...
 
    Toni=20 Aniento
------=_NextPart_000_001D_01C7BF08.0A5FC2C0--