# LocalizedTimestamp.Builder

# LocalizedTimestamp.Builder

*** ** * ** ***

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

<br />

```
class LocalizedTimestamp.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                 ### Public functions                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LocalizedTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#build())`()`                                                                                                                                                                                                                                                                                                                      |
| [LocalizedTimestamp.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#setTimestamp(org.joda.time.Instant))`(timestamp: `[Instant](https://developer.android.com/reference/kotlin/org/joda/time/Instant)`!)` Sets the timestamp for the localized timestamp.            |
| [LocalizedTimestamp.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/common/datamodel/LocalizedTimestamp.Builder#setTimezone(org.joda.time.DateTimeZone))`(timezone: `[DateTimeZone](https://developer.android.com/reference/kotlin/org/joda/time/DateTimeZone)`!)` Sets the timezone for the localized timestamp. |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### build

```
fun build(): LocalizedTimestamp!
```  

### setTimestamp

```
@CanIgnoreReturnValue
fun setTimestamp(timestamp: Instant!): LocalizedTimestamp.Builder!
```

Sets the timestamp for the localized timestamp.

Required.  

### setTimezone

```
@CanIgnoreReturnValue
fun setTimezone(timezone: DateTimeZone!): LocalizedTimestamp.Builder!
```

Sets the timezone for the localized timestamp.

Required.