例: AdjustMinute method

  1. 次のスクリプトは、NotesDateTime オブジェクトの値に 20 分を加算します。その結果、このオブジェクトの値は 04/16/96 05:56:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMinute( 20 )
  2. 次のスクリプトは、NotesDateTime オブジェクトの値から 20 分を減算します。その結果、このオブジェクトの値は 04/16/96 05:16:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMinute( -20 )
  3. 次のスクリプトは、今日の日付が設定される NotesDateTime オブジェクトを作成し、作成したオブジェクトに 50 分を加算しようとします。しかし、dateTime には時間の部分がないため、この AdjustMinute メソッドは無効です。
    Dim dateTime As New NotesDateTime( "Today" )
    Call dateTime.AdjustMinute( 50 )