From: Stefan Kangas Date: Sun, 7 Aug 2022 11:16:53 +0000 (+0200) Subject: ; Improve time-convert call in recently changed test X-Git-Tag: emacs-29.0.90~1447^2~346 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c0da894b9e69c8cb216585c5de1361be2e51812;p=emacs.git ; Improve time-convert call in recently changed test * test/lisp/eshell/em-pred-tests.el (eshell-parse-file-name-attributes): Use t instead of nil as second argument to 'time-convert'. Suggested by Stefan Monnier . --- diff --git a/test/lisp/eshell/em-pred-tests.el b/test/lisp/eshell/em-pred-tests.el index ef31a5d1473..0d6351ec826 100644 --- a/test/lisp/eshell/em-pred-tests.el +++ b/test/lisp/eshell/em-pred-tests.el @@ -75,7 +75,7 @@ The following attributes are recognized: (`(,(and (or "links" "uid" "gid" "size") key) ,value) (cons (intern key) (string-to-number value))) (`(,(and (or "atime" "mtime" "ctime") key) ,value) - (cons (intern key) (time-convert (string-to-number value) nil))) + (cons (intern key) (time-convert (string-to-number value) t))) (`(,key ,value) (cons (intern key) value)) (_ (error "invalid format %S" i))))