X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=elmo%2Felmo-date.el;h=52e4c66cf25a67c015503db6c10d3d3703656ac8;hb=3f9d46d5b75ecfc609094f394437aa0e1d27d5d4;hp=5e8ad89bb2b6590216e568fc91c2f1082ce66e2e;hpb=2e9f5d2e3f003da464c20fe9924d1e80849265e6;p=elisp%2Fwanderlust.git diff --git a/elmo/elmo-date.el b/elmo/elmo-date.el index 5e8ad89..52e4c66 100644 --- a/elmo/elmo-date.el +++ b/elmo/elmo-date.el @@ -1,6 +1,6 @@ ;;; elmo-date.el -- Date processing module for ELMO. -;; Copyright 1998,1999,2000 Yuuichi Teranishi +;; Copyright (C) 1998,1999,2000 Yuuichi Teranishi ;; Author: Yuuichi Teranishi ;; Keywords: mail, net news @@ -51,7 +51,7 @@ (defun elmo-date-get-datevec (description) (cond ((not elmo-date-match) - (error "date match is not available")) + (error "Date match is not available")) ((string-match "^[ \t]*\\([0-9]+\\)?[ \t]*\\([a-zA-Z]+\\)$" description) (let ((today (save-match-data @@ -138,6 +138,15 @@ "0:00") (cadr timezone)) nil nil))) -(provide 'elmo-date) +(defmacro elmo-date-make-sortable-string (datevec) + "Make a sortable string from DATEVEC." + (` (timezone-make-sortable-date + (aref (, datevec) 0) + (aref (, datevec) 1) + (aref (, datevec) 2) + (aref (, datevec) 3)))) + +(require 'product) +(product-provide (provide 'elmo-date) (require 'elmo-version)) ;;; elmo-date.el ends here