# TimeInterval

# TimeInterval

Artifact:[androidx.glance:glance-wear-tiles](https://developer.android.com/jetpack/androidx/releases/glance)  
[View Source](https://cs.android.com/search?q=file:androidx/glance/wear/tiles/TimelineMode.kt+class:androidx.glance.wear.tiles.TimeInterval)  
Added in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  
Deprecated in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)

<br />

```
data class TimeInterval
```

<br />

*** ** * ** ***

| **This class is deprecated.**   
| glance-wear-tiles is deprecated and will be removed

TimeInterval class defines a period from[start](https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimeInterval#start())to[end](https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimeInterval#end())

## Summary

|                                                                                                                                                                                                 ### Public constructors                                                                                                                                                                                                  |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[TimeInterval](https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimeInterval#TimeInterval(java.time.Instant,java.time.Instant))~~`(start: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`, end: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`)` **This function is deprecated.**glance-wear-tiles is deprecated and will be removed |

|                           ### Public properties                           |
|---------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Instant](https://developer.android.com/reference/java/time/Instant.html) | [end](https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimeInterval#end()) **This property is deprecated.**glance-wear-tiles is deprecated and will be removed     |
| [Instant](https://developer.android.com/reference/java/time/Instant.html) | [start](https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimeInterval#start()) **This property is deprecated.**glance-wear-tiles is deprecated and will be removed |

## Public constructors

### TimeInterval

Added in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  
Deprecated in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  

```
[TimeInterval](https://developer.android.com/reference/kotlin/androidx/glance/wear/tiles/TimeInterval#TimeInterval(java.time.Instant,java.time.Instant))(
    start: Instant = Instant.ofEpochMilli(0),
    end: Instant = Instant.ofEpochMilli(Long.MAX_VALUE)
)
```
| **This function is deprecated.**   
glance-wear-tiles is deprecated and will be removed  

|                                                        Parameters                                                         |
|---------------------------------------------------------------------------------------------------------------------------|-------------------------------------|
| `start: `[Instant](https://developer.android.com/reference/java/time/Instant.html)` = Instant.ofEpochMilli(0)`            | The start time of the time interval |
| `end: `[Instant](https://developer.android.com/reference/java/time/Instant.html)` = Instant.ofEpochMilli(Long.MAX_VALUE)` | The end time of the time interval   |

## Public properties

### end

Added in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  
Deprecated in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  

```
val end: Instant
```
| **This property is deprecated.**   
| glance-wear-tiles is deprecated and will be removed

The end time of the time interval  

### start

Added in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  
Deprecated in[1.0.0-alpha07](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0-alpha07)  

```
val start: Instant
```
| **This property is deprecated.**   
| glance-wear-tiles is deprecated and will be removed

The start time of the time interval