# DisplayTimeWindow

# DisplayTimeWindow

*** ** * ** ***

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

<br />

```
public final class DisplayTimeWindow
```

<br />

*** ** * ** ***

An object representing a display time window.

## Summary

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

|                                                                         ### Public methods                                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://developer.android.com/reference/java/lang/Long.html)`>` | [getEndTimestampMillis](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/Long.html)`>` | [getStartTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow#getStartTimestampMillis())`()` Returns the start timestamp for the content in epoch milliseconds. |

## Public methods

### getEndTimestampMillis

```
public Optional<Long> getEndTimestampMillis()
```

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

```
public Optional<Long> getStartTimestampMillis()
```

Returns the start timestamp for the content in epoch milliseconds.

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