Skip to content

Add or Subtract Time

Function Description

TIP

Add or subtract time from a specified date and time, supporting text-formatted dates

Configuration Item Description

General

Command Input

  • Original Date and TimeTDateTime: Enter a date and time object

  • Adjustment Method:Integer: Choose to add or subtract time

  • DurationInteger: Enter the duration

  • Time UnitInteger: Select the time unit

  • Output Text FormatBoolean: If checked, specify that the output of this command is in text format of the new date, otherwise it is a date and time object

Command Output

  • Save New Date and Time ToTDateTime: Specify a variable to save the changed date and time

  • Save New Date Text Tostring: Specify a variable to save the text of the changed date and time

Advanced

  • Delay Before(milliseconds)Integer: The waiting time before instruction execution

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None