[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: invalid time specification
Osma Ahvenlampi <oa-lists@spray.fi> writes:
> (I hacked another Date header back to 1904 and repeated the error..)
>
> Signaling: (error "Invalid time specification")
> format-time-string("%d-%b" (33943 8391))
> gnus-dd-mmm("Sun, 23 May 1904 00:19:03 -0500")
Interesting, seems like XEmacs 20.4 and 21.2.10 can't handle that
date. Emacs 19.34 thru 20.3.9 seem fine though, this explains why I
wasn't able to repeat the problem. I'll send this to xemacs-beta...
Emacs:
(parse-time-string "Sun, 23 May 1904 00:19:03 -0500")
(3 19 0 23 5 1904 0 nil -18000)
(encode-time 3 19 0 23 5 1904 0 nil -18000)
(-31593 8391)
(date-to-time "Sun, 23 May 1904 00:19:03 -0500")
(-31593 8391)
(format-time-string "%d-%b"
(date-to-time "Sun, 23 May 1904 00:19:03 -0500"))
"23-May"
XEmacs 20.4:
(parse-time-string "Sun, 23 May 1904 00:19:03 -0500")
(3 19 0 23 5 1904 0 nil -18000)
(encode-time 3 19 0 23 5 1904 0 nil -18000)
(33943 8391)
(date-to-time "Sun, 23 May 1904 00:19:03 -0500")
(33943 8391)
(format-time-string "%d-%b"
(date-to-time "Sun, 23 May 1904 00:19:03 -0500"))
Signaling: (error "Invalid time specification")
format-time-string("%d-%b" (33943 8391))
XEmacs 21.2.10:
(parse-time-string "Sun, 23 May 1904 00:19:03 -0500")
(3 19 0 23 5 1904 0 nil -18000)
(encode-time 3 19 0 23 5 1904 0 nil -18000)
Signaling: (error "Specified time is not representable")
encode-time(3 19 0 23 5 1904 0 nil -18000)