Function: tramp-adb-ls-output-time-less-p

tramp-adb-ls-output-time-less-p is a byte-compiled function defined in tramp-adb.el.gz.

Signature

(tramp-adb-ls-output-time-less-p A B)

Documentation

Sort "ls" output by time, descending.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-adb.el.gz
(defun tramp-adb-ls-output-time-less-p (a b)
  "Sort \"ls\" output by time, descending."
  (let (time-a time-b)
    ;; Once we can assume Emacs 27 or later, the two calls
    ;; (apply #'encode-time X) can be replaced by (encode-time X).
    (string-match tramp-adb-ls-date-regexp a)
    (setq time-a (apply #'encode-time (parse-time-string (match-string 0 a))))
    (string-match tramp-adb-ls-date-regexp b)
    (setq time-b (apply #'encode-time (parse-time-string (match-string 0 b))))
    (time-less-p time-b time-a)))