Mail Archives: djgpp/2007/07/05/07:27:06
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>At the end I've found a =
solution.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I should add the line: =
camposHora.tm_isdst =3D=20
-1; <BR>and the program gives the correct result.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV id=3Dresult_box dir=3Dltr>Nevertheless many =
thanks...</FONT></DIV></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Toni</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Da_aniento AT hotmail DOT com =
href=3D"mailto:a_aniento AT hotmail DOT com">Antoni=20
Aniento Recasens</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Ddjgpp AT delorie DOT com=20
href=3D"mailto:djgpp AT delorie DOT com">djgpp AT delorie DOT com</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, July 05, 2007 =
12:58=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> question about =
mktime</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20
title=3Da_aniento AT hotmail DOT com =
href=3D"mailto:a_aniento AT hotmail DOT com">Antoni Aniento=20
Recasens</A> </DIV>
<DIV><B>To:</B> <A title=3Dlistserv AT delorie DOT com=20
href=3D"mailto:listserv AT delorie DOT com">listserv AT delorie DOT com</A> </DIV>
<DIV><B>Sent:</B> Thursday, July 05, 2007 12:55 PM</DIV>
<DIV><B>Subject:</B> question about mktime</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Dear DJGPP's!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm new in this list. I've a question =
to=20
you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>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 (<A=20
=
href=3D"http://www.delorie.com/djgpp/compile/">http://www.delorie.com/djg=
pp/compile/</A>)=20
the result is 1175601600 (corresponts to 3-march-2007 =
12:00).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I suppose the problem should come =
from the=20
installation, but I don't know where.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Could you give me any =
help!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Many thanks in advance. </FONT><FONT =
face=3DArial=20
size=3D2>Best regards...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Toni=20
Aniento</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_001D_01C7BF08.0A5FC2C0--
- Raw text -