Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-08-15
10:41 • Closed ticket [1257830fff]: bad scan around 1901 plus 7 other changes artifact: b78de15d05 user: kennykb
2005-08-13
00:05 • Ticket [1257830fff]: 4 changes artifact: 2f45d772e0 user: hobbs
00:04 • Ticket [1257830fff]: 5 changes artifact: 7f7c2f13b9 user: hobbs
2005-08-12
17:01 • New ticket [1257830fff]. artifact: 669856b422 user: dgp

bad scan around 1901

Closed / Fixed1257830fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-08-12 17:01:25
tclguyMain console display active (Tcl8.5a4 / Tk8.5a4)
(tile) 49 % clock format [ clock scan 1901-01-01 ]
Wed Dec 31 15:59:59 -0800 1969
(tile) 50 % clock scan 1901-01-01
-1
(tile) 51 % clock scan 1902-01-01
-2145888000

[12:52]tclguythat's very bad
hobbsplain2005-08-13 00:04:38
Logged In: YES 
user_id=72656

It gets worse when you realize that the other end is
similarly broken:

(tk85s) 51 % clock format [ clock scan 2039-01-01 ]
Wed Dec 31 15:59:59 -0800 1969

For some silly reason I thought the clock rewrite was going
to unencumber the time limitations ... but we still have the
2037 problem.
hobbsplain2005-08-13 00:05:55
Logged In: YES 
user_id=72656

Just as a reference point, 8.4 complains about unable to
convert date for dates outside the 32-bit range.  See also

http://aspn.activestate.com/ASPN/Mail/Message/ActiveTcl/2779492
kennykbplain2005-08-15 10:41:07
Logged In: YES 
user_id=99768

The scan may still fail for dates/times out of range, but
this should be less common since I also added code to look
for /etc/localtime.
Log in (anonymous is fine) to add a comment.