AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# TimeInterval Constructor

Creates a `TimeInterval` with the specified value and unit.

public TimeInterval(
int value,
TimeIntervalUnit unit
);

#### Parameters

value
  The numeric component of the time interval.
unit
  The unit component of the time interval. Cannot be `TimeIntervalUnit.Unset`.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | `TimeIntervalUnit.Unset` is set to be the unit.

#### See Also

TimeInterval Class | Plumtree.Remote.PRC Namespace