LOTUSSCRIPT/COM/OLE CLASSES
Examples: AdjustHour method
1. This script increments a NotesDateTime object by two hours, so that it represents 04/16/96 07:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( 2 )
2. This script decrements a NotesDateTime object by two hours, so that it represents 04/16/96 03:36:00 PM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( -2 )
3. This script increments a NotesDateTime object by ten hours. This carries the date over to the next day, so that it represents 04/17/96 03:36:00 AM.
Dim dateTime As New NotesDateTime( "04/16/96 05:36 PM" )
Call dateTime.AdjustHour( 10 )
4. This script creates a NotesDateTime object set to today's date and increments it by 24 hours. The date-time does not have a time component, but since 24 hours crosses a day boundary, the date component is incremented by 1 day.
Dim dateTime As New NotesDateTime( "Today" )
Call dateTime.AdjustHour( 24 )
Véase también
AdjustHour method
Glosario
¿Desea opinar sobre la Ayuda?
Ayuda sobre la Ayuda
Abrir la Ayuda en pantalla completa
Glosario
¿Desea opinar sobre la Ayuda?
Ayuda sobre la Ayuda
Abrir la Ayuda en pantalla completa