LOTUSSCRIPT /COM/OLE のクラス
例:AdjustHour メソッド
1 次のスクリプトは NotesDateTime オブジェクトを 2 時間増やします。オブジェクトは 04/16/96 07:36:00 PM を表します。
Dim dateTime As New NotesDateTime( "04/16/98 05:36 PM" )
Call dateTime.AdjustHour( 2 )
2 次のスクリプトは NotesDateTime オブジェクトを 2 時間減らします。オブジェクトは 04/16/96 03:36:00 PM を表します。
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( -2 )
3 次のスクリプトは NotesDateTime オブジェクトを 10 時間増やします。日付が翌日に変わり、オブジェクトは 04/17/96 03:36:00 AM を表します。
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( 10 )
4 次のスクリプトは今日の日付が設定される NotesDateTime オブジェクトを作成し、作成したオブジェクトを 24 時間増やそうとします。日時には時刻の部分が含まれませんが、24 時間は 1 日の経過を表すため、日付の部分が 1 日増えます。
Dim dateTime As New NotesDateTime( "Today" )
Call dateTime.AdjustHour( 24 )
関連項目
AdjustHour メソッド
用語集
フィードバック
ヘルプ
または
プロダクトユーザビリティ
?
ヘルプの使い方
すべてのヘルプ項目
用語集