setDateTimeDelta

setDateTimeDelta(deltaDate: Integer;
                 deltaTime: Integer);

The setDateTimeDelta method of the Process class sets the values used to adjust initial values of the Date, Time, TimeStamp, and TimeStampOffset local variables.

The value of deltaDate parameter specifies the number of days by which to adjust the initial value of any Date local variable and the Date component of a TimeStamp and TimeStampOffset local variable.

The value of the deltaTime parameter the number of milliseconds by which to adjust the initial value of any Time local variable and the Time component of a TimeStamp and TimeStampOffset local variable.

Calling the setDateTimeDelta method with parameter values of zero (0) causes all local variables to be initialized with the current date and time. If you want to set the date or time to a value in the past, specify a negative value in the appropriate parameter.

You can define an adjustment to the initial date or time value for local variables only for the current process.

For details about retrieving the values used to adjust the initial date and time used by the receiving process, see the getDateTimeDelta method.