GNU bug report logs -
#48298
Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil))
Previous Next
Reported by: Евгений Михайлов <lewwadoo <at> gmail.com>
Date: Sat, 8 May 2021 20:59:01 UTC
Severity: normal
Merged with 48290
Found in versions 27.1, 27.2
Fixed in version 28.1
Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
forcemerge 48290 48298
quit
Евгений Михайлов <lewwadoo <at> gmail.com> writes:
> (my-mins-between "11:30" "12:04")
>
> (defun my-mins-between (time1 time2)
> "Return the minutes between HH:mm strings TIME1 and TIME2."
> (let ((diff (apply #'time-subtract
> (mapcar (lambda (time)
> (encode-time (decoded-time-set-defaults
> (parse-time-string time))))
> (list time1 time2)))))
> (/ (float-time diff) 60)))
>
> Debugger entered--Lisp error: (error "Invalid time specification")
> encode-time((0 30 11 1 1 0 nil -1 nil))
> (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time))))("11:30")
> mapcar((lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time)))) ("11:30" "12:04"))
I'm not sure what happened that resulted in two bug reports being
submitted, but this looks like the missing description from
https://bugs.gnu.org/48290, so I'm merging the two reports.
Thanks,
--
Basil
This bug report was last modified 4 years and 62 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.