From: "Alex Vinokur" Newsgroups: comp.os.msdos.djgpp Subject: Re: mktime() & time_t Date: Tue, 21 May 2002 11:32:45 +0200 Organization: Scopus Lines: 24 Message-ID: References: NNTP-Posting-Host: gateway.scopus.net (62.90.123.5) X-Trace: fu-berlin.de 1021969858 25551862 62.90.123.5 (16 [79865]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1020521110056 DOT 6271A-100000 AT is... | | On Tue, 21 May 2002, Alex Vinokur wrote: | | > However : May mktime() return -1 ? | | It's in the docs: mktime returns -1 if you feed it with time outside the | range of dates it can represent. But in this case mktime() returns UINT_MAX ( not -1 ) because time_t if of 'unsigned int' type. -- ==================== Alex Vinokur http://up.to/alexvn http://go.to/alexv_math mailto:alexvn AT bigfoot DOT com mailto:alexvn AT go DOT to ====================