# AvailabilityTimeWindow

# AvailabilityTimeWindow

*** ** * ** ***

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

<br />

```
public final class AvailabilityTimeWindow
```

<br />

*** ** * ** ***

An object representing a availability time window.

## Summary

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

|                                                          ### Public fields                                                          |
|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[Long](https://developer.android.com/reference/java/lang/Long.html)                                                         | [endTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#endTimestampMillis()) **This field is deprecated.** Use[localizedEndTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#localizedEndTimestamp())instead. <br />         |
| `final `[LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp) | [localizedEndTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#localizedEndTimestamp())                                                                                                                                                                                                              |
| `final `[LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp) | [localizedStartTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#localizedStartTimestamp())                                                                                                                                                                                                          |
| `final `[Long](https://developer.android.com/reference/java/lang/Long.html)                                                         | [startTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#startTimestampMillis()) **This field is deprecated.** Use[localizedStartTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#localizedStartTimestamp())instead. <br /> |

|                                                     ### Public methods                                                      |
|-----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://developer.android.com/reference/java/lang/Long.html)                                                         | ~~[getEndTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getEndTimestampMillis())~~`()` **This method is deprecated.** use[getLocalizedEndTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getLocalizedEndTimestamp())instead <br />         |
| [LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp) | [getLocalizedEndTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getLocalizedEndTimestamp())`()` Returns the localized end timestamp for the availability time window.                                                                                                                                                  |
| [LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp) | [getLocalizedStartTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getLocalizedStartTimestamp())`()` Returns the localized start timestamp for the availability time window.                                                                                                                                            |
| [Long](https://developer.android.com/reference/java/lang/Long.html)                                                         | ~~[getStartTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getStartTimestampMillis())~~`()` **This method is deprecated.** use[getLocalizedStartTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getLocalizedStartTimestamp())instead <br /> |

## Public fields

### endTimestampMillis

```
public final Long endTimestampMillis
```
| **This field is deprecated.**   
|
Use[localizedEndTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#localizedEndTimestamp())instead.  

### localizedEndTimestamp

```
public final LocalizedTimestamp localizedEndTimestamp
```  

### localizedStartTimestamp

```
public final LocalizedTimestamp localizedStartTimestamp
```  

### startTimestampMillis

```
public final Long startTimestampMillis
```
| **This field is deprecated.**   
|
Use[localizedStartTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#localizedStartTimestamp())instead.  

## Public methods

### getEndTimestampMillis

```
public Long [getEndTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getEndTimestampMillis())()
```
| **This method is deprecated.**   
|
| use[getLocalizedEndTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getLocalizedEndTimestamp())instead

Returns the end timestamp for the availability time window in epoch milliseconds.  

### getLocalizedEndTimestamp

```
public LocalizedTimestamp getLocalizedEndTimestamp()
```

Returns the localized end timestamp for the availability time window.  

### getLocalizedStartTimestamp

```
public LocalizedTimestamp getLocalizedStartTimestamp()
```

Returns the localized start timestamp for the availability time window.  

### getStartTimestampMillis

```
public Long [getStartTimestampMillis](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getStartTimestampMillis())()
```
| **This method is deprecated.**   
|
| use[getLocalizedStartTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AvailabilityTimeWindow#getLocalizedStartTimestamp())instead

Returns the start timestamp for the availability time window in epoch milliseconds.