JRS: In article <pA*************@newsfe3-gui.ntli.net>, dated Wed, 28
Jul 2004 01:47:01, seen in news:comp.lang.javascript, Andy Stevenson
<no@chance.com> posted :
Hi,
As subject, I have the following JS in my HTML document & it works fine:
<SCRIPT type="text/JavaScript">
<!--
COPYRIGHT = " : Copyright © Diverse Arts., 2003-";
function writeCopyright()
{
document.write(COPYRIGHT, new Date().getFullYear(), ". All rights
reserved.");
}
That should be legally ineffective. Copyright dates from the final
creative act, not from the date of reading the document. If you cannot
update the date once every few years to prove you're alive, you do not
deserve fresh copyright.
var m = "Page updated " + document.lastModified;
var p = m.length-8;
document.write(m.substring(p, 0));
That will, for some combinations of browser and user, display the date
in a potentially-misleading transatlantic form.
At least one browser, I am told, does not put the time at the end of the
string; you will mis-cut.
Generally, it will not be clear whether the date is user's local or GMT.
It cannot be author's local, as such.
An author should be capable of updating the date, in HTML text, when he
changes the page significantly; it should be left unchanged if, for
example, minor non-deceptive typos are corrected.
<URL:http://www.merlyn.demon.co.uk/js-date3.htm#lM>.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> JL / RC : FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.