Mail Archives: djgpp/2002/05/21/07:31:46
From: | "Alex Vinokur" <alexvn AT bigfoot DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: mktime() for 1969 & 2106
|
Date: | Tue, 21 May 2002 14:21:18 +0200
|
Organization: | Scopus
|
Lines: | 109
|
Message-ID: | <acdagr$p28b5$1@ID-79865.news.dfncis.de>
|
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1020521130646 DOT 7489B-100000 AT is>
|
NNTP-Posting-Host: | gateway.scopus.net (62.90.123.5)
|
X-Trace: | fu-berlin.de 1021979995 26288485 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" <eliz AT is DOT elta DOT co DOT il> wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1020521130646 DOT 7489B-100000 AT is...
|
| On Tue, 21 May 2002, Alex Vinokur wrote:
|
| > It seems that not 'all results for 1969 and 2106' are valid.
|
| That's because your time zone is not GMT0, but something else. The range
| of times that mktime can represent is defined in the GMT0 zone (a.k.a.
| UTC time); for all other zones, mktime does the appropriate correction.
| That's why the first valid time for your machine is in 1969, not January
| 1, 1970.
|
| For the record: what is your timezone, as set on your DJGPP machine?
zoneinfo was missing on my DJGPP machine.
| The headers of your message seem to indicate it's +0400, is that what you
| have on the DJGPP machine?
|
| > Is something wrong?
|
| No. You just need to make sure your TZ environment variable is set to
| your time zone. See section 22.20 of the DJGPP FAQ list for more
| details.
|
| Also make sure you have the latest upload of djtzn203.zip from SimTel:
| the initial upload had a bug in the generated timezone files.
|
Thanks.
I download djtzn203.zip from SimTel (by the way, this file name is missing in list of zip files).
Now my DJGPP machine contains zoneinfo with its subdirectories and files.
TZ=c:/djgpp/zoneinfo/israel
Here are a new run log file.
------ BEGIN ------
DATA-TIME 1969:12:31::00:00:57 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:00:58 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:00:59 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:01:00 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:01:01 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:01:02 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:59:57 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:59:58 ---> mktime() can't return required time
DATA-TIME 1969:12:31::00:59:59 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:00:00 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:00:01 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:00:02 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:00:57 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:00:58 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:00:59 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:01:00 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:01:01 ---> mktime() can't return required time
DATA-TIME 1969:12:31::01:01:02 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:00:57 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:00:58 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:00:59 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:01:00 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:01:01 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:01:02 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:59:57 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:59:58 ---> mktime() can't return required time
DATA-TIME 1969:12:31::23:59:59 ---> mktime() can't return required time
DATA-TIME 1970:01:01::00:00:00 ---> 004294960096
DATA-TIME 1970:01:01::00:00:01 ---> 004294960097
DATA-TIME 1970:01:01::00:00:02 ---> 004294960098
DATA-TIME 2106:02:07::06:28:12 ---> 004294960092
DATA-TIME 2106:02:07::06:28:13 ---> 004294960093
DATA-TIME 2106:02:07::06:28:14 ---> 004294960094
DATA-TIME 2106:02:07::06:28:15 ---> 004294960095
DATA-TIME 2106:02:07::06:28:16 ---> 004294960096
DATA-TIME 2106:02:07::06:28:17 ---> 004294960097
DATA-TIME 2106:02:07::06:28:18 ---> 004294960098
DATA-TIME 2106:02:07::06:28:57 ---> 004294960137
DATA-TIME 2106:02:07::06:28:58 ---> 004294960138
DATA-TIME 2106:02:07::06:28:59 ---> 004294960139
DATA-TIME 2106:02:07::06:29:00 ---> 004294960140
DATA-TIME 2106:02:07::06:29:01 ---> 004294960141
DATA-TIME 2106:02:07::06:29:02 ---> 004294960142
------ END --------
It seems that new log file is better than old one.
However, what happened to 1970 ?
--
====================
Alex Vinokur
http://up.to/alexvn
http://go.to/alexv_math
mailto:alexvn AT bigfoot DOT com
mailto:alexvn AT go DOT to
====================
- Raw text -