]> code.delx.au - gnu-emacs/blobdiff - lisp/time-stamp.el
*** empty log message ***
[gnu-emacs] / lisp / time-stamp.el
index a6dcec78050638818a3d07bd26b9a99d278a5be6..577faf80715e61ee0a780947e6fd1e0e5185b4fb 100644 (file)
@@ -3,8 +3,10 @@
 ;; Copyright 1989, 1993, 1994, 1995, 1997, 2000, 2001
 ;;;    Free Software Foundation, Inc.
 
-;; Maintainer's Time-stamp: <2000-12-04 16:06:50 gildea>
-;; Maintainer: Stephen Gildea <gildea@alum.mit.edu>
+;; This file is part of GNU Emacs.
+
+;; Maintainer's Time-stamp: <2001-09-20 11:57:46 gildea>
+;; Maintainer: Stephen Gildea <gildea@stop.mail-abuse.org>
 ;; Keywords: tools
 
 ;; This file is free software; you can redistribute it and/or modify
@@ -50,8 +52,9 @@ backward compatibility; see variable `time-stamp-old-format-warn'.
 
 A string is used verbatim except for character sequences beginning
 with %, as follows.  The values of non-numeric formatted items depend
-on the locale setting recorded in `locale-coding-system'.  The
-examples here are for the default (`C') locale.
+on the locale setting recorded in `system-time-locale' and
+`locale-coding-system'.  The examples here are for the default
+(`C') locale.
 
 %:a  weekday name: `Monday'.           %#A gives uppercase: `MONDAY'
 %3a  abbreviated weekday: `Mon'.       %3A gives uppercase: `MON'
@@ -392,7 +395,8 @@ With arg, turn time stamping on if and only if arg is positive."
 
 (defun time-stamp-string (&optional ts-format)
   "Generate the new string to be inserted by \\[time-stamp].
-Optionally use FORMAT."
+Optionally use format TS-FORMAT instead of `time-stamp-format' to
+format the string."
   (or ts-format
       (setq ts-format time-stamp-format))
   (if (stringp ts-format)
@@ -499,7 +503,7 @@ and all time-stamp-format compatibility."
          "%%")
         ((eq cur-char ?a)              ;day of week
          (if change-case
-             (format-time-string "%#A" time)
+             (format-time-string "%#a" time)
            (or alt-form (not (string-equal field-width ""))
                (time-stamp-conv-warn "%a" "%:a"))
            (if (and alt-form (not (string-equal field-width "")))
@@ -513,7 +517,7 @@ and all time-stamp-format compatibility."
            (format-time-string "%#A" time)))
         ((eq cur-char ?b)              ;month name
          (if change-case
-             (format-time-string "%#B" time)
+             (format-time-string "%#b" time)
            (or alt-form (not (string-equal field-width ""))
                (time-stamp-conv-warn "%b" "%:b"))
            (if (and alt-form (not (string-equal field-width "")))