Up: Time   [Index]


2.10.1 Time Stamp Pattern

time-stamp-pattern

variable

Convenience variable setting all ‘time-stamp’ location and format values. If you must change them for

some application, do so only in the local variables section of the time-stamped file itself.

This string has four parts, each of which is optional:

time-stamp-line-limit

number followed by slash ‘8/

time-stamp-start

regexp identifying the pattern preceding the time stamp

time-stamp-format

specifies the format of the time stamp inserted

time-stamp-end

regexp identifying the pattern following the time stamp

time-stamp-format

variable

Format of the string inserted by M-x time-stamp. This is a string, used verbatim except for character sequences beginning with %.

%4y

4-digit year

%02m

month number

%02d

day of month

%02H

24-hour clock hour

%02M

minutes

format-time-string

built-in function

(format-time-string FORMAT-STRING &optional TIME ZONE)

Use FORMAT-STRING to format the time TIME, or now if omitted or nil. TIME is specified as (HIGH LOW USEC PSEC), as returned by ‘current-time’ or ‘file-attributes’. It can also be a single integer number of seconds since the epoch. The obsolete form (HIGH . LOW) is also still accepted.