Document.lastModified

  • Revision slug: DOM/document.lastModified
  • Revision title: document.lastModified
  • Revision id: 28758
  • Created:
  • Creator: timdream
  • Is current revision? No
  • Comment and IE; 2 words added

Revision Content

{{ DomRef() }}

Summary

Returns a string containing the date and time on which the current document was last modified.

Syntax

var string = document.lastModified; 

Example

dump(document.lastModified); 
// returns: Tuesday, July 10, 2001 10:19:42

Notes

Note that as a string, lastModified cannot easily be used for comparisions between the modified dates of documents.

Webkit return the time string in UTC; Gecko and IE will return a time in local timezone.

Specification

{{ DOM0() }}

{{ MSDN("ms533946", "lastModified Property") }}

{{ languages( { "pl": "pl/DOM/document.lastModified" } ) }}

Revision Source

<p>{{ DomRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>Returns a string containing the date and time on which the current document was last modified.</p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval"><em>var string</em> = document.lastModified; 
</pre>
<h3 name="Example">Example</h3>
<pre class="eval">dump(document.lastModified); 
// returns: Tuesday, July 10, 2001 10:19:42
</pre>
<h3 name="Notes">Notes</h3>
<p>Note that as a string, <code>lastModified</code> cannot easily be used for comparisions between the modified dates of documents.</p>
<p>Webkit return the time string in UTC; Gecko and IE will return a time in local timezone.</p><h3 name="Specification">Specification</h3>
<p>{{ DOM0() }}</p>
<p>{{ MSDN("ms533946", "lastModified Property") }}</p>
<p>{{ languages( { "pl": "pl/DOM/document.lastModified" } ) }}</p>
Revert to this revision