473,382 Members | 1,421 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,382 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 2001
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.