> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# v1.PublisherRelativePeriodV2

- Package: [@gooddata/sdk-code-schemas](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-schemas/src/v1/metadata.ts

The period the document reports on, in the date filter grammar without a dataset. Numbers for from and to make it relative; dates make it absolute. Both ends are inclusive.

**Signature:**

```typescript
export interface PublisherRelativePeriodV2 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [from](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.publisherrelativeperiodv2/index.md#v1publisherrelativeperiodv2from) |  | number | Offset from the current period, for example -1. |
| [granularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.publisherrelativeperiodv2/index.md#v1publisherrelativeperiodv2granularity) |  | "SECOND" \| "MINUTE" \| "HOUR" \| "DAY" \| "WEEK\_US" \| "MONTH" \| "QUARTER" \| "YEAR" \| "FISCAL\_YEAR" \| "FISCAL\_QUARTER" \| "FISCAL\_MONTH" |  |
| [to](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-schemas/sdk-code-schemas.v1.publisherrelativeperiodv2/index.md#v1publisherrelativeperiodv2to) |  | number | Offset from the current period, for example -1. |

## Property details

### v1.PublisherRelativePeriodV2.from

Offset from the current period, for example -1.

**Signature:**

```typescript
from: number;
```

### v1.PublisherRelativePeriodV2.granularity

**Signature:**

```typescript
granularity: "SECOND" | "MINUTE" | "HOUR" | "DAY" | "WEEK_US" | "MONTH" | "QUARTER" | "YEAR" | "FISCAL_YEAR" | "FISCAL_QUARTER" | "FISCAL_MONTH";
```

### v1.PublisherRelativePeriodV2.to

Offset from the current period, for example -1.

**Signature:**

```typescript
to: number;
```
