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