help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using hhmts Timestamp in a <meta> tag, Feature Request


From: Stefan Kamphausen
Subject: Re: Using hhmts Timestamp in a <meta> tag, Feature Request
Date: Tue, 17 Mar 2009 09:37:25 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hi,

I'd drop the hhmts-tags and switch to time-stamp.

Put something like this into your emacs-init-file:
(require 'time-stamp)
(add-hook 'write-file-hooks 'time-stamp)


And then create your HTML-files like this:

----------------------------------------------------------------------
<html>
  <head>
     <meta name="Timestamp" content="Last modified: 2009-03-17 09:35:39" />
 <title>Testing Timestamp</title>
</head>
<body>
<h1>Testing Timestamp</h1>

</body>
</html>
<!-- 
Local Variables:
time-stamp-start: "<meta name=\"Timestamp\" content=\""
time-stamp-end: "\" />"
time-stamp-format: "Last modified: %:y-%02m-%02d %02H:%02M:%02S"
End:
-->
----------------------------------------------------------------------


Cheers
Stefan

-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]