TimeStamp

Represents a timestamp object which is can be added to a `https://developers.google.com/apps-script/reference/add-ons-response-service/variable-data`.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

```javascript
const timeStamp = AddOnsResponseService.newTimeStamp()
    .setSeconds(10086)
    .setNanos(123);
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/time-stamp#setNanos(Integer)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/time-stamp#` | Sets the nanos of the timestamp, it represents the number of nanoseconds within the current second. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/time-stamp#setSeconds(Integer)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/time-stamp#` | Sets the seconds of the timestamp, it represents the number of seconds since the Unix epoch(January 1, 1970, 00:00:00 UTC). |

## Detailed documentation

### `setNanos(nanos)`

Sets the nanos of the timestamp, it represents the number of nanoseconds within the current
second.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `nanos` | `Integer` | The nanos of the timestamp. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/time-stamp#` --- This time stamp object, for chaining.

*** ** * ** ***

### `setSeconds(seconds)`

Sets the seconds of the timestamp, it represents the number of seconds since the Unix
epoch(January 1, 1970, 00:00:00 UTC).

#### Parameters

| Name | Type | Description |
|---|---|---|
| `seconds` | `Integer` | The seconds of the timestamp. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/time-stamp#` --- This time stamp object, for chaining.