+1999-12-23 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * timezone.el (timezone-abs): Eliminated.
+ (timezone-zone-to-minute): Use `abs' instead of `timezone-abs'.
+
+ * poe-18.el (current-time-zone): Use `abs'.
+
1999-12-23 Keiichi Suzuki <keiichi@nanap.org>
* product.el: Fix file header. `checkdoc' fix.
(setq timezone (string-to-int timezone)))
;; Taking account of minute in timezone.
;; HHMM -> MM
- (setq abszone (if (< timezone 0) (- timezone) timezone))
+ (setq abszone (abs timezone))
(setq seconds (* 60 (+ (* 60 (/ abszone 100)) (% abszone 100))))
(list (if (< timezone 0) (- seconds) seconds)
local-timezone))))
(setq timezone (string-to-int timezone)))
;; Taking account of minute in timezone.
;; HHMM -> MM
- (let* ((abszone (timezone-abs timezone))
+ (let* ((abszone (abs timezone))
(minutes (+ (* 60 (/ abszone 100)) (% abszone 100))))
(if (< timezone 0) (- minutes) minutes))))
(t 0)))
(- (/ (1- year) 100));; - century years
(/ (1- year) 400)));; + Gregorian leap years
-(defun timezone-abs (n)
- "Return the absolute value of N."
- (if (fboundp 'abs)
- (abs n)
- (if (< n 0) (- n) n)))
-
(defun timezone-floor (n &optional divisor)
"Return the largest integer no grater than N.
With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR."