# ThreadNetworkCredentials.Timestamp

public static final class **ThreadNetworkCredentials.Timestamp** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
The timestamp of Thread Operational Dataset.

### Public Constructor Summary

|---|---|
|   | [Timestamp](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#Timestamp(long,%20int,%20boolean))(long seconds, int ticks, boolean isAuthoritativeSource) Creates a new `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp` object with given parameters. |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| long | [getSeconds](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#getSeconds())() Returns the seconds portion of the timestamp. |
| int | [getTicks](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#getTicks())() Returns the ticks portion of the timestamp. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#hashCode())() |
| boolean | [isAuthoritativeSource](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#isAuthoritativeSource())() Indicates whether the timestamp comes from an authoritative source. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [toString](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp#toString())() |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Constructors

#### public **Timestamp** (long seconds, int ticks, boolean isAuthoritativeSource)

Creates a new `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadNetworkCredentials.Timestamp` object with given parameters.

##### Parameters

| seconds | the value encodes a Unix Time value. Must be in the range of 0x0-0xffffffffffffL. |
| ticks | the value encodes the fractional Unix Time value in 32.768 kHz resolution. Must be in the range of 0x0-0x7fff. |
| isAuthoritativeSource | the flag indicates the time was obtained from an authoritative source: either NTP (Network Time Protocol), GPS (Global Positioning System), cell network, or other method. |
|---|---|

##### Throws

| [IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException.html) | if the `seconds` is not in range of 0x0-0xffffffffffffL or `ticks` is not in range of 0x0-0x7fff. |
|---|---|

## Public Methods

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) other)

#### public long **getSeconds** ()

Returns the seconds portion of the timestamp.

#### public int **getTicks** ()

Returns the ticks portion of the timestamp.

#### public int **hashCode** ()

#### public boolean **isAuthoritativeSource** ()

Indicates whether the timestamp comes from an authoritative source.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **toString** ()