www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/07/05/07:27:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <BAY104-DAV3C92E78136ED4033B7ABC87020@phx.gbl>
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" <a_aniento AT hotmail DOT com>
To: <djgpp AT delorie DOT com>
References: <BAY104-DAV8AEDA82E7ECB12DB035B387020 AT phx DOT gbl>
Subject: Re: question about mktime
Date: Thu, 5 Jul 2007 13:26:05 +0200
MIME-Version: 1.0
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

<!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: &nbsp; =
camposHora.tm_isdst =3D=20
-1; <BR>and the program gives the correct result.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Toni</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
  <DIV>
  <DIV><FONT face=3DArial size=3D2>I've trying to compile the attached =
source file=20
  test2.c with DJGPP.&nbsp;In my laptop the result of mktime is always =
-1, while=20
  in the &nbsp;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>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Could you give me any =
help!</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Toni=20
Aniento</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_001D_01C7BF08.0A5FC2C0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019