Not strictly Linux, but some of you may dabble in web sites, so here's my 2 cents worth.
I've always thought it was a good idea fo have some idea how old the stuff on a web page is. No sense getting all fired up over something 4 years old.
So, having a programming background, I set out to not only accomplish it, but to automate it. And here it is, for any that are interested.
1. Include your JavaScript file in each html file by placing this in the head section:
<script type="text/javascript" language="JavaScript" src="scripts/main.js"></script>
Of course you can change the location and name to suit.
2. Then, put this function in your javascript file:
function PutDateModified()
{
// Get the actual date the html file was last modified, and pull out a
// sub-string without the seconds (no meed to make this overly
// complicated for the reader). You can leave them in if you want.
// And, in fact, you can, if you want, eliminate the variable and replace
// it, where it's used, with the stuff we're setting it equal to.
var date = document.lastModified.substr(0, document.lastModified.lastIndexOf(":"));
// Now. write into the html stream whatever styling you want.
document.write("<font size=" 3 " color=" "red" ">");
document.write("<i>");
// Here we write the actual text into the html stream.
document.write("Page Last Updated: " date);
// And finally, close out the tags. This won't be needed if you're ALWAYS
// going to place as the last thing on the page, but I recommend it, just
// to avoid surprises later.
document.write("</i>");
document.write("</font>");
}
Of course, you're free to screw around with font size.color and text decoration to your hearts content. And the styling could always be placed in a CSS style sheet. Just don't get too gaudy!
3. Now, down at the bottom (or where ever you prefer) of each html file, place this:
<script>
PutDateModified();
</script>
Voila! Every page of your web site will now automatically tell the user how old it is, no need for you to concern yourself with it any longer. And no, I won't sue you - it's free to use anywhere, anytime by anybody.