- 
    
    
- 
    
    
        Duplicates the provided instance.
     
    
    
        
        | Name | Type | Description |  
            
                | timeInterval | TimeInterval | optional
                
                
                
            
                The instance to clone. |  
            
                | result | TimeInterval | optional
                
                
                
            
                An existing instance to use for the result. |  
 Returns:
    The modified result parameter or a new instance if none was provided.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
        
        staticCesium.TimeInterval.contains(timeInterval, julianDate) → Boolean
        
    
 
- 
    
    
        Checks if the specified date is inside the provided interval.
     Returns:
    trueif the interval contains the specified date,falseotherwise.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
        
        staticCesium.TimeInterval.equals(left, right, dataComparer) → Boolean
        
    
 
- 
    
    
        Compares two instances and returns trueif they are equal,falseotherwise.
 
    
    
        
        | Name | Type | Description |  
            
                | left | TimeInterval | optional
                
                
                
            
                The first instance. |  
            
                | right | TimeInterval | optional
                
                
                
            
                The second instance. |  
            
                | dataComparer | TimeInterval~DataComparer | optional
                
                
                
            
                A function which compares the data of the two intervals.  If omitted, reference equality is used. |  
 Returns:
    trueif the dates are equal; otherwise,false.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
        
        staticCesium.TimeInterval.equalsEpsilon(left, right, epsilon, dataComparer) → Boolean
        
    
 
- 
    
    
        Compares two instances and returns trueif they are withinepsilonseconds of
each other.  That is, in order for the dates to be considered equal (and for
this function to returntrue), the absolute value of the difference between them, in
seconds, must be less thanepsilon.
 
    
    
        
        | Name | Type | Description |  
            
                | left | TimeInterval | optional
                
                
                
            
                The first instance. |  
            
                | right | TimeInterval | optional
                
                
                
            
                The second instance. |  
            
                | epsilon | Number | The maximum number of seconds that should separate the two instances. |  
            
                | dataComparer | TimeInterval~DataComparer | optional
                
                
                
            
                A function which compares the data of the two intervals.  If omitted, reference equality is used. |  
 Returns:
    trueif the two dates are withinepsilonseconds of each other; otherwisefalse.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
- 
    
    
        Creates a new instance from an  ISO 8601 interval.
     
    
    
        
        | Name | Type | Description |  
            
                | options | Object | Object with the following properties: 
    
    
        
        | Name | Type | Default | Description |  
            
                | iso8601 | String |  | An ISO 8601 interval. |  
            
                | isStartIncluded | Boolean | true | optional trueifoptions.startis included in the interval,falseotherwise. |  
            
                | isStopIncluded | Boolean | true | optional trueifoptions.stopis included in the interval,falseotherwise. |  
            
                | data | Object |  | optional
                
                
                
            
                Arbitrary data associated with this interval. |  |  
            
                | result | TimeInterval | optional
                
                
                
            
                An existing instance to use for the result. |  
 Returns:
    The modified result parameter or a new instance if none was provided.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
        
        staticCesium.TimeInterval.intersect(left, right, result, mergeCallback) → TimeInterval
        
    
 
- 
    
    
        Computes the intersection of two intervals, optionally merging their data.
     
    
    
        
        | Name | Type | Description |  
            
                | left | TimeInterval | The first interval. |  
            
                | right | TimeInterval | optional
                
                
                
            
                The second interval. |  
            
                | result | TimeInterval | An existing instance to use for the result. |  
            
                | mergeCallback | TimeInterval~MergeCallback | optional
                
                
                
            
                A function which merges the data of the two intervals. If omitted, the data from the left interval will be used. |  
 Returns:
    The modified result parameter.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
        
        staticCesium.TimeInterval.toIso8601(timeInterval, precision) → String
        
    
 
- 
    
    
        Creates an ISO8601 representation of the provided interval.
     
    
    
        
        | Name | Type | Description |  
            
                | timeInterval | TimeInterval | The interval to be converted. |  
            
                | precision | Number | optional
                
                
                
            
                The number of fractional digits used to represent the seconds component.  By default, the most precise representation is used. |  
 Returns:
    The ISO8601 representation of the provided interval.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
- 
    
    
        Duplicates this instance.
     
    
    
        
        | Name | Type | Description |  
            
                | result | TimeInterval | optional
                
                
                
            
                An existing instance to use for the result. |  
 Returns:
    The modified result parameter or a new instance if none was provided.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
- 
    
    
        Compares this instance against the provided instance componentwise and returns
trueif they are equal,falseotherwise.
 
    
    
        
        | Name | Type | Description |  
            
                | right | TimeInterval | optional
                
                
                
            
                The right hand side interval. |  
            
                | dataComparer | TimeInterval~DataComparer | optional
                
                
                
            
                A function which compares the data of the two intervals.  If omitted, reference equality is used. |  
 Returns:
    trueif they are equal,falseotherwise.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
        
        equalsEpsilon(right, epsilon, dataComparer) → Boolean
        
    
 
- 
    
    
        Compares this instance against the provided instance componentwise and returns
trueif they are within the provided epsilon,falseotherwise.
 
    
    
        
        | Name | Type | Description |  
            
                | right | TimeInterval | optional
                
                
                
            
                The right hand side interval. |  
            
                | epsilon | Number | The epsilon to use for equality testing. |  
            
                | dataComparer | TimeInterval~DataComparer | optional
                
                
                
            
                A function which compares the data of the two intervals.  If omitted, reference equality is used. |  
 Returns:
    trueif they are within the provided epsilon,falseotherwise.
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
 
- 
    
    
- 
    
    
        Creates a string representing this TimeInterval in ISO8601 format.
     Returns:
    A string representing this TimeInterval in ISO8601 format.