GetElapsedBusinessTime Method

GetElapsedBusinessTime calculates the business time to accomplish a task. This method calculates the business time that elapses between 2 dates, according to a schedule that runs in a specific time zone.

This method is not used as part of any workflow process.

Arguments

The following table describes the arguments for this method.

Argument Name Description

Calendar Id

The ID of the schedule that is associated with the starting and ending time.

Schedule Time Zone

The time zone for the starting and ending time.

Start Time

The starting date and time of the task. This argument uses one of the following formats:

  • mm/dd/yyyy hh:mm:ss

  • m/dd/yy hh:mm:s

The first part of the format designates a date (month/date/year). For this part, the separator can be a slash (/) or a hyphen (-). The second part of the format designates a time (hour:minute:second).

End Time

The ending date and time of the task. This argument uses the same formats as the Start Time argument.

Time Unit

The unit of time (for example, hours or days).

Return Value

The following table describes the return value for this method.

Return Value Description

Business Time

The number of hours or days to accomplish the task.