

# TimeInterval
<a name="API_TimeInterval"></a>

Contains a time interval with a start time and an end time. Use a time interval to restrict an operation, such as a search, to a specific time range.

## Contents
<a name="API_TimeInterval_Contents"></a>

 ** endTime **   <a name="iotsitewise-Type-TimeInterval-endTime"></a>
The end of the time interval.  
Type: [TimeInNanos](API_TimeInNanos.md) object  
Required: Yes

 ** startTime **   <a name="iotsitewise-Type-TimeInterval-startTime"></a>
The start of the time interval.  
Type: [TimeInNanos](API_TimeInNanos.md) object  
Required: Yes

## See Also
<a name="API_TimeInterval_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iotsitewise-2019-12-02/TimeInterval) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotsitewise-2019-12-02/TimeInterval) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotsitewise-2019-12-02/TimeInterval) 