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: Subject: question about mktime Date: Thu, 5 Jul 2007 12:58:56 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0080_01C7BF04.3F5C0C80" 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 10:58:52.0162 (UTC) FILETIME=[791CF620:01C7BEF3] Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0080_01C7BF04.3F5C0C80 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0081_01C7BF04.3F5C0C80" ------=_NextPart_001_0081_01C7BF04.3F5C0C80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ----- 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_001_0081_01C7BF04.3F5C0C80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
----- Original Message -----=20
From: Antoni Aniento=20 Recasens
To: listserv AT delorie DOT com
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_001_0081_01C7BF04.3F5C0C80-- ------=_NextPart_000_0080_01C7BF04.3F5C0C80 Content-Type: application/octet-stream; name="test2.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test2.c" #include #include main() { time_t segundos; struct tm camposHora; camposHora.tm_mday =3D 3; camposHora.tm_mon =3D 3; camposHora.tm_year =3D 107; camposHora.tm_hour =3D 12; camposHora.tm_min =3D 0; camposHora.tm_sec =3D 0; segundos =3D mktime(&camposHora); printf("min=3D%d hora=3D%d dia=3D%d mes=3D%d any=3D%d = total=3D%d\n",camposHora.tm_min,camposHora.tm_hour,camposHora.tm_mday,cam= posHora.tm_mon,camposHora.tm_year,segundos); } ------=_NextPart_000_0080_01C7BF04.3F5C0C80--