CreateDuration

This task creates a Duration variable to be used with a DateTime variable.

Table 1. Input Properties
Property Type Description
IsNegative Boolen Determines if the duration applies to the future (true) or to the past (false).
Years Number Number of years.
Months Number Number of months.
Days Number Number of days.
Hours Number Number of hours.
Minutes Number Number of minutes.
Seconds Number Number of seconds.
Milliseconds Number Number of milliseconds.
  • If any value is negative, then causes an exception (no validation).
  • At least one digit is required, otherwise returns an exception (no validation).
  • 0 in any position is valid. Example: you can have a duration of 0.
  • Any number from 0 to any positive number is valid.
  • When isNegative is anything but true (or a true boolean variable), then the value defaults to false.