LastModified (NotesDocument - JavaScript)

読み取り専用。文書が最後に変更された日付/時刻。

定義場所

NotesDocument

構文

getLastModified() : NotesDateTime

使用法

このプロパティは、文書が変更されていないときは null または 0 です。

以下の計算結果フィールドには、現在の文書の作成日、最初の更新日、最終変更日時、最終アクセス日が表示されます。
var doc:NotesDocument = currentDocument.getDocument();
var msg = "This document was created on " + doc.getCreated().getDateOnly();
var im:NotesDateTime = doc.getInitiallyModified();
if (im !=null && im != 0) {
	var msg = msg + ", initially modified on " + im.getDateOnly();
}
var lm:NotesDateTime = doc.getLastModified();
if (lm != null && im != 0) {
	var msg = msg + ", last modified on " + lm.getDateOnly();
}
var la:NotesDateTime = doc.getLastAccessed();
if (la != null && la != 0) {
	var msg = msg + ", last accessed on " + la.getDateOnly();
}
return msg

言語間の参照

LotusScript® NotesDocument クラスの LastModified プロパティ

Java™ Document クラスの LastModified プロパティ