diff options
| -rw-r--r-- | lisp/time-stamp.el | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 37b74b7008f..5a8fe4dcb07 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs | 1 | ;;; time-stamp.el --- Maintain last change time stamps in files edited by Emacs |
| 2 | ;;; Copyright 1989, 1993, 1994, 1995 Free Software Foundation, Inc. | 2 | ;;; Copyright 1989, 1993, 1994, 1995 Free Software Foundation, Inc. |
| 3 | ;;; Maintainer's Time-stamp: <95/05/30 13:28:56 gildea> | 3 | ;;; Maintainer's Time-stamp: <95/05/31 10:47:14 gildea> |
| 4 | 4 | ||
| 5 | ;; Maintainer: Stephen Gildea <gildea@lcs.mit.edu> | 5 | ;; Maintainer: Stephen Gildea <gildea@lcs.mit.edu> |
| 6 | ;; Keywords: tools | 6 | ;; Keywords: tools |
| @@ -48,7 +48,7 @@ | |||
| 48 | ;;; Originally based on the 19 Dec 88 version of | 48 | ;;; Originally based on the 19 Dec 88 version of |
| 49 | ;;; date.el by John Sturdy <mcvax!harlqn.co.uk!jcgs@uunet.uu.net> | 49 | ;;; date.el by John Sturdy <mcvax!harlqn.co.uk!jcgs@uunet.uu.net> |
| 50 | ;;; version 2, January 1995: replaced functions with %-escapes | 50 | ;;; version 2, January 1995: replaced functions with %-escapes |
| 51 | ;;; $Id: time-stamp.el,v 1.1 95/05/30 17:57:24 gildea Exp $ | 51 | ;;; $Id: time-stamp.el,v 1.13 1995/05/30 21:20:09 kwzh Exp kwzh $ |
| 52 | 52 | ||
| 53 | ;;; Code: | 53 | ;;; Code: |
| 54 | 54 | ||
| @@ -187,6 +187,23 @@ With arg, turn time stamping on if and only if arg is positive." | |||
| 187 | (time-stamp-strftime time-stamp-format) | 187 | (time-stamp-strftime time-stamp-format) |
| 188 | (time-stamp-fconcat time-stamp-format " "))) ;version 1 compatibility | 188 | (time-stamp-fconcat time-stamp-format " "))) ;version 1 compatibility |
| 189 | 189 | ||
| 190 | (defconst time-stamp-month-numbers | ||
| 191 | '(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4) ("May" . 5) ("Jun" . 6) | ||
| 192 | ("Jul" . 7) ("Aug" . 8) ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12)) | ||
| 193 | "Alist of months and their number.") | ||
| 194 | |||
| 195 | (defconst time-stamp-month-full-names | ||
| 196 | ["(zero)" "January" "February" "March" "April" "May" "June" | ||
| 197 | "July" "August" "September" "October" "November" "December"]) | ||
| 198 | |||
| 199 | (defconst time-stamp-weekday-numbers | ||
| 200 | '(("Sun" . 0) ("Mon" . 1) ("Tue" . 2) ("Wed" . 3) | ||
| 201 | ("Thu" . 4) ("Fri" . 5) ("Sat" . 6)) | ||
| 202 | "Alist of weekdays and their number.") | ||
| 203 | |||
| 204 | (defconst time-stamp-weekday-full-names | ||
| 205 | ["Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday"]) | ||
| 206 | |||
| 190 | (defun time-stamp-strftime (format &optional time) | 207 | (defun time-stamp-strftime (format &optional time) |
| 191 | "Uses a FORMAT to format date, time, file, and user information. | 208 | "Uses a FORMAT to format date, time, file, and user information. |
| 192 | Optional second argument TIME will be used instead of the current time. | 209 | Optional second argument TIME will be used instead of the current time. |
| @@ -342,23 +359,6 @@ use \"%3a %3b %2d %02H:%02M:%02S %Z %y\"" | |||
| 342 | (setq ind (1+ ind))) | 359 | (setq ind (1+ ind))) |
| 343 | result)) | 360 | result)) |
| 344 | 361 | ||
| 345 | (defconst time-stamp-month-numbers | ||
| 346 | '(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4) ("May" . 5) ("Jun" . 6) | ||
| 347 | ("Jul" . 7) ("Aug" . 8) ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12)) | ||
| 348 | "Alist of months and their number.") | ||
| 349 | |||
| 350 | (defconst time-stamp-month-full-names | ||
| 351 | ["(zero)" "January" "February" "March" "April" "May" "June" | ||
| 352 | "July" "August" "September" "October" "November" "December"]) | ||
| 353 | |||
| 354 | (defconst time-stamp-weekday-numbers | ||
| 355 | '(("Sun" . 0) ("Mon" . 1) ("Tue" . 2) ("Wed" . 3) | ||
| 356 | ("Thu" . 4) ("Fri" . 5) ("Sat" . 6)) | ||
| 357 | "Alist of weekdays and their number.") | ||
| 358 | |||
| 359 | (defconst time-stamp-weekday-full-names | ||
| 360 | ["Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday"]) | ||
| 361 | |||
| 362 | (defun time-stamp-mail-host-name () | 362 | (defun time-stamp-mail-host-name () |
| 363 | "Return the name of the host where the user receives mail. | 363 | "Return the name of the host where the user receives mail. |
| 364 | This is the value of `mail-host-address' if bound and a string, | 364 | This is the value of `mail-host-address' if bound and a string, |