2000-02-04 Yuuichi Teranishi <teranisi@gohome.org>
+ * timezone.el (timezone-floor): Eliminated.
+ (timezone-fix-time-2): Use `floor' instead of `timezone-floor'.
+
* poe-18.el (current-time): Fixed leap year count bug.
(set-time-zone-rule): New function.
(current-time-zone): Use `set-time-zone-rule'.
(diff (- (timezone-zone-to-minute timezone)
(timezone-zone-to-minute local)))
(minute (+ minute diff))
- (hour-fix (timezone-floor minute 60)))
+ (hour-fix (floor minute 60)))
(setq hour (+ hour hour-fix))
(setq minute (- minute (* 60 hour-fix)))
;; HOUR may be larger than 24 or smaller than 0.
(- (/ (1- year) 100));; - century years
(/ (1- year) 400)));; + Gregorian leap years
-(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."
- (if (fboundp 'floor)
- (floor n divisor)
- (if (null divisor)
- (setq divisor 1))
- (if (< n 0)
- (- (/ (- divisor 1 n) divisor))
- (/ n divisor))))
-
;;; @ End.
;;;