www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/13/12:01:34

Date: Wed, 13 Oct 1999 12:02:32 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Ambuhl <mambuhl AT earthlink DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: mktime implememtation problem
In-Reply-To: <3803A628.92B59B8B@earthlink.net>
Message-ID: <Pine.SUN.3.91.991013120213.16702X-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 12 Oct 1999, Martin Ambuhl wrote:

> The standard requires of mktime that "the original values of tm_wday and
> rm_yday components of the structure are ignored."  I have discovered
> that if I do not set these components to possibly legal values, mktime
> returns (time_t)-1, meaning that it fails.

Care to provide a simple example?  FWIW, the sources don't show
tm_wday or tm_yday being referenced at all on the right-hand side of
any assignment, and I cannot do much more without a test case.

- Raw text -


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