;;; elmo-date.el -- Date processing module for ELMO.
-;; Copyright 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
+;; Copyright (C) 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
;; Author: Yuuichi Teranishi <teranisi@gohome.org>
;; Keywords: mail, net news
(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
"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