diff options
| author | Paul Eggert | 2019-02-10 23:47:43 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-02-10 23:54:34 -0800 |
| commit | 57c74793c46c6533b63836f00aecaf3ac2accb6d (patch) | |
| tree | 5ceb3f9e765c4240069f92653d1648ca1137887c /lisp/calendar | |
| parent | 54b9ee77adca44299fe8f4342498a082608b4d1b (diff) | |
| download | emacs-57c74793c46c6533b63836f00aecaf3ac2accb6d.tar.gz emacs-57c74793c46c6533b63836f00aecaf3ac2accb6d.zip | |
Prefer encode-time to its alias
* lisp/calendar/icalendar.el, lisp/calendar/timeclock.el:
* lisp/emacs-lisp/timer.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/nndiary.el:
* lisp/gnus/nnrss.el, lisp/net/newst-backend.el:
* lisp/net/rcirc.el, lisp/obsolete/xesam.el:
* lisp/org/org-agenda.el, lisp/org/org-clock.el:
* lisp/org/org-element.el, lisp/org/org-timer.el:
* lisp/org/org.el, lisp/progmodes/flymake.el:
* lisp/url/url-cache.el, lisp/url/url-cookie.el:
Use encode-time instead of its alias seconds-to-time.
Diffstat (limited to 'lisp/calendar')
| -rw-r--r-- | lisp/calendar/icalendar.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/timeclock.el | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index 3bcb7520e29..31ace6fb9be 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el | |||
| @@ -1621,7 +1621,7 @@ enumeration, given as a time value, in same format as returned by | |||
| 1621 | (mapcar | 1621 | (mapcar |
| 1622 | (lambda (offset) | 1622 | (lambda (offset) |
| 1623 | (let* ((day (decode-time (time-add now | 1623 | (let* ((day (decode-time (time-add now |
| 1624 | (seconds-to-time | 1624 | (encode-time |
| 1625 | (* offset 60 60 24))))) | 1625 | (* offset 60 60 24))))) |
| 1626 | (d (nth 3 day)) | 1626 | (d (nth 3 day)) |
| 1627 | (m (nth 4 day)) | 1627 | (m (nth 4 day)) |
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el index 0562f4a998d..fd6f5310c8d 100644 --- a/lisp/calendar/timeclock.el +++ b/lisp/calendar/timeclock.el | |||
| @@ -528,7 +528,7 @@ non-nil, the amount returned will be relative to past time worked." | |||
| 528 | "Return a time value representing the end of today's workday. | 528 | "Return a time value representing the end of today's workday. |
| 529 | If TODAY-ONLY is non-nil, the value returned will be relative only to | 529 | If TODAY-ONLY is non-nil, the value returned will be relative only to |
| 530 | the time worked today, and not to past time." | 530 | the time worked today, and not to past time." |
| 531 | (seconds-to-time | 531 | (encode-time |
| 532 | (- (float-time) | 532 | (- (float-time) |
| 533 | (let ((discrep (timeclock-find-discrep))) | 533 | (let ((discrep (timeclock-find-discrep))) |
| 534 | (if discrep | 534 | (if discrep |
| @@ -1196,7 +1196,7 @@ HTML-P is non-nil, HTML markup is added." | |||
| 1196 | (insert project "</b><br>\n") | 1196 | (insert project "</b><br>\n") |
| 1197 | (insert project "*\n")) | 1197 | (insert project "*\n")) |
| 1198 | (let ((proj-data (cdr (assoc project (timeclock-project-alist log)))) | 1198 | (let ((proj-data (cdr (assoc project (timeclock-project-alist log)))) |
| 1199 | (two-weeks-ago (seconds-to-time | 1199 | (two-weeks-ago (encode-time |
| 1200 | (- (float-time today) | 1200 | (- (float-time today) |
| 1201 | (* 2 7 24 60 60)))) | 1201 | (* 2 7 24 60 60)))) |
| 1202 | two-week-len today-len) | 1202 | two-week-len today-len) |
| @@ -1249,16 +1249,16 @@ HTML-P is non-nil, HTML markup is added." | |||
| 1249 | <th>-1 year</th> | 1249 | <th>-1 year</th> |
| 1250 | </tr>") | 1250 | </tr>") |
| 1251 | (let* ((day-list (timeclock-day-list)) | 1251 | (let* ((day-list (timeclock-day-list)) |
| 1252 | (thirty-days-ago (seconds-to-time | 1252 | (thirty-days-ago (encode-time |
| 1253 | (- (float-time today) | 1253 | (- (float-time today) |
| 1254 | (* 30 24 60 60)))) | 1254 | (* 30 24 60 60)))) |
| 1255 | (three-months-ago (seconds-to-time | 1255 | (three-months-ago (encode-time |
| 1256 | (- (float-time today) | 1256 | (- (float-time today) |
| 1257 | (* 90 24 60 60)))) | 1257 | (* 90 24 60 60)))) |
| 1258 | (six-months-ago (seconds-to-time | 1258 | (six-months-ago (encode-time |
| 1259 | (- (float-time today) | 1259 | (- (float-time today) |
| 1260 | (* 180 24 60 60)))) | 1260 | (* 180 24 60 60)))) |
| 1261 | (one-year-ago (seconds-to-time | 1261 | (one-year-ago (encode-time |
| 1262 | (- (float-time today) | 1262 | (- (float-time today) |
| 1263 | (* 365 24 60 60)))) | 1263 | (* 365 24 60 60)))) |
| 1264 | (time-in (vector (list t) (list t) (list t) (list t) (list t))) | 1264 | (time-in (vector (list t) (list t) (list t) (list t) (list t))) |