Skip to content

Get DateTime Interval

Function Description

TIP

Get the interval between two dates and times

Configuration Item Description

General

Command Input

  • Start TimeTDateTime: Enter a date and time object for the start

  • End TimeTDateTime: Enter a date and time object for the end

  • Time UnitInteger: Choose the time unit for the interval calculation

Command Output

  • Save Interval ToInteger: Specify a variable to save the calculated interval

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