File: time-stamp.el.html

A template in a file can be updated with a new time stamp when you save the file. For example:
    static char *ts = "sdmain.c Time-stamp: <2025-03-28 21:31:56 gildea>";

To use time-stamping, add this line to your init file:
    (add-hook 'before-save-hook 'time-stamp)
Now any time-stamp templates in your files will be updated automatically.

For details, see the documentation for function time-stamp and the Info node (emacs)Time Stamps.

Defined variables (12)

time-stamp-activeNon-nil enables time-stamping of buffers by M-x time-stamp.
time-stamp-conversion-warnEnable warnings for old formats in ‘time-stamp-format’.
time-stamp-countHow many templates M-x time-stamp will look for in a buffer.
time-stamp-endRegexp marking the text after the time stamp.
time-stamp-formatFormat of the string inserted by M-x time-stamp.
time-stamp-inserts-linesWhether M-x time-stamp can change the number of lines in a file.
time-stamp-line-limitLines searched; positive counts from start, negative from end.
time-stamp-no-fileString to use when the buffer is not associated with a file.
time-stamp-patternShorthand variable for ‘time-stamp’ location and format values.
time-stamp-startRegexp after which the time stamp is written by M-x time-stamp.
time-stamp-time-zoneThe time zone used by M-x time-stamp. t uses UTC.
time-stamp-warn-inactiveHave M-x time-stamp warn if a buffer did not get time-stamped.

Defined functions (16)

time-stamp()
time-stamp--count-newlines(STR)
time-stamp--format(FORMAT TIME)
time-stamp--message(WARNING-STRING)
time-stamp--system-name(TYPE)
time-stamp--system-name-1(SYSNAME TYPE)
time-stamp-conv-warn(OLD-FORMAT NEW-FORMAT &optional STANDARD-FORMAT)
time-stamp-do-letter-case(CHANGE-IS-DOWNCASE UPCASE TITLE-CASE CHANGE-CASE TEXT)
time-stamp-do-number(FORMAT-CHAR COLON-COUNT FIELD-WIDTH TIME)
time-stamp-filtered-buffer-file-name(TYPE)
time-stamp-formatz-from-parsed-options(FLAG-MINIMIZE FLAG-PAD-SPACES-ONLY FLAG-PAD-ZEROS-FIRST COLON-COUNT FIELD-WIDTH OFFSET-SECS)
time-stamp-once(START SEARCH-LIMIT TS-START TS-END TS-FORMAT FORMAT-LINES END-LINES)
time-stamp-string(&optional TS-FORMAT TIME)
time-stamp-string-preprocess(FORMAT &optional TIME)
time-stamp-toggle-active(&optional ARG)
time-stamp-zone-type-p(ZONE)

Defined faces (0)