473,287 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Printing modification date

I am working on some documentation in html format and I would really like to display
the date the html file, itself was modified. I am writing my documentation in vi and
the html server involved is Apache.

This is a conversion effort from MS Frontpage 2000. In Frontpage, there's a feature
that allows the document's modification date to be displayed in the document, but I
tried this with a javascript that I downloaded via the Internet, but it returns
incorrect information.

Does anyone know a simple way to include the modification date in an html document?
Maybe an example page that I could look at?
Jul 20 '05 #1
3 1999
st**@temple.edu wrote:
I am working on some documentation in html format and I would
really like to display the date the html file, itself was modified.
Try this:
<div>Last modified 2004-02-03.</div>
No, you cannot reliably automate it. Only you can know when you have
really modified the document. Normally, updating the date takes one
hundredth or less of the time needed for the actual modification.
Otherwise the modification is probably not worth doing, or worth being
recorded in the modification date.
I am writing my documentation in vi and the html server involved is
Apache.


Apache sends the HTTP header Last-Modified anyway, so anyone really
interested in knowing the exact moment of time of uploading the
document onto the server, or modifying it there, can get the
information, at least after getting a decent browser (e.g., using
control-i on Mozilla.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2
It seems "" wrote in comp.infosystems.www.authoring.html:
I am working on some documentation in html format and I would really like to display
the date the html file, itself was modified. I am writing my documentation in vi and
the html server involved is Apache.


vi, or Vim? In Vim you can use functions: there's getftime() to get
the files timestamp, and strftime() to convert it to a human-
readable format. You could set up an auto-execute macro to find the
old date and change it to the actual new date.

Vim is a free (well, charityware) enhanced version of vi:
http://www.vim.org

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
On 3 Feb 2004 16:50:26 GMT, st**@temple.edu wrote:
I am working on some documentation in html format and I would really like to display
the date the html file, itself was modified. I am writing my documentation in vi
Saving this info into the HTML file itself automatically would require
some pre-save processing, it seems. I don't know vi well enough to know
if it is capable of doing this. An alternative could be a cleverly
constructed macro, if vi supports macro's, that updates the
last-modified date present in the file to today. If you've marked up the
date in a distinguishable way, this should not be too difficult.
and the html server involved is Apache.


In that case, if you can use server side includes, you may want to
consider that.

http://httpd.apache.org/docs/howto/s...ndateofthefile

Gertjan.

--
Gertjan Klein <gk****@xs4all.nl>
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: a | last post by:
hello all, is there an easy way to get the creation or modification date in a remote server without using ftp_mdtm($url?)? I would like to be able to checkthe date of a...
5
by: Patrick De Ridder | last post by:
How can I turn what I want to print 90 degrees using the logic below? Please tell me the code with which to make the modification. Many thanks, Patrick. using System.ComponentModel; using...
7
by: Maravilloso | last post by:
Hi I'm trying to automatically send a postscript file to be printed to the default printer in a Win98 PC, by means of using the instrucction: win32api.ShellExecute (0, "print", "file.ps",...
1
by: Henry Law | last post by:
(I posted this to comp.infosystems.www.browsers.misc but there seems to be very little traffic there. I can't see another suitable group; is it on topic here? If not, any suggestions as to...
4
by: qwweeeit | last post by:
Hi all, I'm a newbie in JS, but I've used it to print html + additional informations: - list of links (also internals) both text (document.links.text) and href - title (document.title) - URL,...
1
by: mich dobelman | last post by:
How can i just get the last modification date from the header list. I though I can $request->headers to get the modification date, but without success. <?php include( "Snoopy.class.php" );...
3
by: MarcJoseph | last post by:
I have a database that is shared my multiple users who enter and update records on a weekly basis. Is there a way I can add a field to my main data table that will automatically generate the...
7
by: Ouroborus777 | last post by:
I've been messing around with printing floats. It seems that printf() is only capable of printing the fractional portion at a fixed length. Is there some way to print floats such that the full...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.