# DisplayTimeWindow

# DisplayTimeWindow

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow "View this page in Java")  

<br />

```
class DisplayTimeWindow
```

<br />

*** ** * ** ***

An object representing a display time window.

## Summary

|                                                                                                                                              ### Nested types                                                                                                                                               |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[DisplayTimeWindow.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow.Builder) Builder class for[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow). |

|                                                                             ### Public functions                                                                              |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!` | [getEndTimestampMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow#getEndTimestampMillis())`()` Returns the end timestamp for the content in epoch milliseconds.       |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!` | [getStartTimestampMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow#getStartTimestampMillis())`()` Returns the start timestamp for the content in epoch milliseconds. |

## Public functions

### getEndTimestampMillis

```
fun getEndTimestampMillis(): Optional<Long!>!
```

Returns the end timestamp for the content in epoch milliseconds.

The content will no longer be presented to the surface after the given end timestamp.  

### getStartTimestampMillis

```
fun getStartTimestampMillis(): Optional<Long!>!
```

Returns the start timestamp for the content in epoch milliseconds.

The content will only be presented to the surface after the given start timestamp.