* parse-time.el (parse-time-rules): Allow 100-110 to be
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 6 Jan 2000 12:42:47 +0000 (12:42 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 6 Jan 2000 12:42:47 +0000 (12:42 +0000)
2000-2010.

* time-date.el (date-to-time): Don't use timezone.

lisp/ChangeLog
lisp/parse-time.el
lisp/time-date.el

index c1e0c32..c37d927 100644 (file)
@@ -1,3 +1,10 @@
+2000-01-06 13:41:11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * parse-time.el (parse-time-rules): Allow 100-110 to be
+       2000-2010. 
+
+       * time-date.el (date-to-time): Don't use timezone.
+
 2000-01-06  Dave Love  <fx@gnu.org>
 
        * time-date.el: Add keywords.
index 11e4682..9cc4ce2 100644 (file)
                        (= (length elt) 7)
                        (= (aref elt 1) ?:)))
      [0 1] [2 4] [5 7])
-    ((5) (50 99) ,#'(lambda () (+ 1900 elt)))
+    ((5) (50 110) ,#'(lambda () (+ 1900 elt)))
     ((5) (0 49) ,#'(lambda () (+ 2000 elt))))
   "(slots predicate extractor...)")
 
index d03441e..06f5ad1 100644 (file)
 
 (require 'parse-time)
 
-(autoload 'timezone-make-date-arpa-standard "timezone")
-
 ;;;###autoload
 (defun date-to-time (date)
   "Convert DATE into time."
   (condition-case ()
-      ;; `timezone-make-date-arpa-standard' makes this more robust,
-      ;; e.g. against the crop of year 100 dates in Jan 2000.
-      (apply 'encode-time (parse-time-string
-                          (timezone-make-date-arpa-standard date)))
+      (apply 'encode-time (parse-time-string date))
     (error (error "Invalid date: %s" date))))
 
 (defun time-to-seconds (time)