Visit Mozilla.org

nsIFile:lastModifiedTime

From MDC

« XPCOM API Reference

[edit] Summary

This attribute exposes the time when the file referenced by this nsIFile was last modified.

 attribute PRInt64 lastModifiedTime;

[edit] Remarks

The value of this attribute is milliseconds since midnight (00:00:00), January 1, 1970 Greenwich Mean Time (GMT).

Changing the last modified time of a nsIFile operates on the underlying filesystem. As of Mozilla 1.7, changing the last modified time of a non-existent file has undefined behavior.

[edit] See Also

nsIFile