Examples: AdjustMinute method

  1. This script increments a NotesDateTime object by 20 minutes, so that it represents 04/16/96 05:56:00 PM.
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMinute( 20 )
  2. This script decrements a NotesDateTime object by 20 minutes, so that it represents 04/16/96 05:16:00 PM.
    Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
    Call dateTime.AdjustMinute( -20 )
  3. This script creates a NotesDateTime object set to today's date and then attempts to increment it by 50 minutes. The AdjustMinute method, however, has no effect because dateTime does not have a time component.
    Dim dateTime As New NotesDateTime( "Today" )
    Call dateTime.AdjustMinute( 50 )