(compilation-minor-mode-map, compilation-mode-map):
[bpt/emacs.git] / lisp / timezone.el
index bad269d..24e0a48 100644 (file)
@@ -1,6 +1,7 @@
 ;;; timezone.el --- time zone package for GNU Emacs
 
-;; Copyright (C) 1990, 1991, 1992, 1993, 1996, 1999 Free Software Foundation, Inc.
+;; Copyright (C) 1990, 1991, 1992, 1993, 1996, 1999, 2001, 2002, 2003,
+;;   2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 ;; Author: Masanobu Umeda
 ;; Maintainer: umerin@mse.kyutech.ac.jp
@@ -8,10 +9,10 @@
 
 ;; This file is part of GNU Emacs.
 
-;; GNU Emacs is free software; you can redistribute it and/or modify
+;; GNU Emacs is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 2, or (at your option)
-;; any later version.
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
 
 ;; GNU Emacs is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -19,9 +20,7 @@
 ;; GNU General Public License for more details.
 
 ;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING.  If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
 
 ;;; Commentary:
 
@@ -149,7 +148,7 @@ Understands the following styles:
        (time nil)
        (zone nil))                     ;This may be nil.
     (cond ((string-match
-           "\\([0-9]+\\)[ \t]+\\([^ \t,]+\\)[ \t]+\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9:]+\\)[ \t]*\\([-+a-zA-Z0-9]+\\)" date)
+           "\\([0-9]+\\)[ \t]+\\([^ \t,]+\\)[ \t]+\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9:]+\\)[ \t]+\\([-+a-zA-Z0-9]+\\)" date)
           ;; Styles: (1) and (2) with timezone and buggy timezone
           ;; This is most common in mail and news,
           ;; so it is worth trying first.
@@ -205,7 +204,7 @@ Understands the following styles:
       ;; Unix Epoch, so are 2000+.  Three-digit years are assumed to
       ;; be relative to 1900.
       (if (< (length year) 4)
-         (let ((y (string-to-int year)))
+         (let ((y (string-to-number year)))
            (if (< y 69)
                (setq y (+ y 100)))
            (setq year (int-to-string (+ 1900 y)))))
@@ -271,7 +270,7 @@ or an integer of the form +-HHMM, or a time zone name."
                  ;; +900
                  timezone))
        (if (stringp timezone)
-           (setq timezone (string-to-int timezone)))
+           (setq timezone (string-to-number timezone)))
        ;; Taking account of minute in timezone.
        ;; HHMM -> MM
        (let* ((abszone (abs timezone))
@@ -314,7 +313,7 @@ Gregorian date Sunday, December 31, 1 BC."
 If LOCAL is nil, it is assumed to be GMT.
 If TIMEZONE is nil, use the local time zone."
   (let* ((date   (timezone-parse-date date))
-        (year   (string-to-int (aref date 0)))
+        (year   (string-to-number (aref date 0)))
         (year   (cond ((< year 69)
                        (+ year 2000))
                       ((< year 100)
@@ -322,12 +321,12 @@ If TIMEZONE is nil, use the local time zone."
                       ((< year 1000)   ; possible 3-digit years.
                        (+ year 1900))
                       (t year)))
-        (month  (string-to-int (aref date 1)))
-        (day    (string-to-int (aref date 2)))
+        (month  (string-to-number (aref date 1)))
+        (day    (string-to-number (aref date 2)))
         (time   (timezone-parse-time (aref date 3)))
-        (hour   (string-to-int (aref time 0)))
-        (minute (string-to-int (aref time 1)))
-        (second (string-to-int (aref time 2)))
+        (hour   (string-to-number (aref time 0)))
+        (minute (string-to-number (aref time 1)))
+        (second (string-to-number (aref time 2)))
         (local  (or (aref date 4) local)) ;Use original if defined
         (timezone
          (or timezone
@@ -397,5 +396,5 @@ The Gregorian date Sunday, December 31, 1 BC is imaginary."
 
 (provide 'timezone)
 
-;;; arch-tag: e23d5bc6-f32d-48ba-8996-323e9d654b3f
+;; arch-tag: e23d5bc6-f32d-48ba-8996-323e9d654b3f
 ;;; timezone.el ends here