例: AdjustYear method

  1. 次のスクリプトは、NotesDateTime オブジェクトの値に 4 年を加算します。その結果、このオブジェクトの値は 04/16/2002 05:36:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustYear( 4 )
  2. 次のスクリプトは、NotesDateTime オブジェクトの値から 4 年を減算します。その結果、このオブジェクトの値は 04/16/92 05:36:00 PM になります。
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustYear( -4 )