Date: Tue, 16 Nov 1999 09:24:20 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Kev cc: djgpp AT delorie DOT com Subject: Re: time() frequency In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 15 Nov 1999, Kev wrote: > And If I take this code to a SPARC or a Linux box, It'll yield different > results. This will only happen if you do arithmetics on what time() returns. This is precisely what Hans-Bernhard was trying to tell you NOT to do! Instead, you should use library functions like ctime(), localtime() and difftime() to perform conversions and comparison of time values. If you do that, your code will work on ANY platform.