[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/timezone.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/timezone.el |
Date: |
Mon, 16 May 2005 07:33:55 -0400 |
Index: emacs/lisp/timezone.el
diff -c emacs/lisp/timezone.el:1.31 emacs/lisp/timezone.el:1.32
*** emacs/lisp/timezone.el:1.31 Thu Nov 13 18:20:08 2003
--- emacs/lisp/timezone.el Mon May 16 11:33:47 2005
***************
*** 205,211 ****
;; 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)))
(if (< y 69)
(setq y (+ y 100)))
(setq year (int-to-string (+ 1900 y)))))
--- 205,211 ----
;; Unix Epoch, so are 2000+. Three-digit years are assumed to
;; be relative to 1900.
(if (< (length year) 4)
! (let ((y (string-to-number year)))
(if (< y 69)
(setq y (+ y 100)))
(setq year (int-to-string (+ 1900 y)))))
***************
*** 271,277 ****
;; +900
timezone))
(if (stringp timezone)
! (setq timezone (string-to-int timezone)))
;; Taking account of minute in timezone.
;; HHMM -> MM
(let* ((abszone (abs timezone))
--- 271,277 ----
;; +900
timezone))
(if (stringp timezone)
! (setq timezone (string-to-number timezone)))
;; Taking account of minute in timezone.
;; HHMM -> MM
(let* ((abszone (abs timezone))
***************
*** 314,320 ****
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 (cond ((< year 69)
(+ year 2000))
((< year 100)
--- 314,320 ----
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-number (aref date 0)))
(year (cond ((< year 69)
(+ year 2000))
((< year 100)
***************
*** 322,333 ****
((< year 1000) ; possible 3-digit years.
(+ year 1900))
(t year)))
! (month (string-to-int (aref date 1)))
! (day (string-to-int (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)))
(local (or (aref date 4) local)) ;Use original if defined
(timezone
(or timezone
--- 322,333 ----
((< year 1000) ; possible 3-digit years.
(+ year 1900))
(t year)))
! (month (string-to-number (aref date 1)))
! (day (string-to-number (aref date 2)))
(time (timezone-parse-time (aref date 3)))
! (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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/timezone.el,
Juanma Barranquero <=