# LocalizedTimestamp.Builder

# LocalizedTimestamp.Builder

*** ** * ** ***

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

<br />

```
public final class LocalizedTimestamp.Builder
```

<br />

*** ** * ** ***

Builder class for[LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp).

## Summary

|                                                        ### Public constructors                                                         |
|----------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#Builder())`()` |

|                                                             ### Public methods                                                              |
|---------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LocalizedTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp)                 | [build](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#build())`()`                                                                                                                                                                                                                                                                                                             |
| [LocalizedTimestamp.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTimestamp](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#setTimestamp(org.joda.time.Instant))`(`[Instant](https://developer.android.com/reference/org/joda/time/Instant)` timestamp)` Sets the timestamp for the localized timestamp.            |
| [LocalizedTimestamp.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTimezone](https://developer.android.com/reference/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#setTimezone(org.joda.time.DateTimeZone))`(`[DateTimeZone](https://developer.android.com/reference/org/joda/time/DateTimeZone)` timezone)` Sets the timezone for the localized timestamp. |

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### build

```
public LocalizedTimestamp build()
```  

### setTimestamp

```
@CanIgnoreReturnValue
public LocalizedTimestamp.Builder setTimestamp(Instant timestamp)
```

Sets the timestamp for the localized timestamp.

Required.  

### setTimezone

```
@CanIgnoreReturnValue
public LocalizedTimestamp.Builder setTimezone(DateTimeZone timezone)
```

Sets the timezone for the localized timestamp.

Required.