---
sidebar:
  hidden: true
title: roboto.experimental.topics.decode.timestamp_unit
---
## Module Contents

### plan_timestamp_unit()

```python
def roboto.experimental.topics.decode.timestamp_unit.plan_timestamp_unit(
    partition: roboto.experimental.topics.read_plan.ReadPlanPartition,
) -> Optional[roboto.time.TimeUnit]
```

`from roboto.experimental.topics.decode.timestamp_unit import plan_timestamp_unit`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/topics/decode/timestamp_unit.py#L19-L36)

Return the unit the plan gives the partition's timestamp field, or `None` when it gives none.

**Parameters**

- **partition** (`roboto.experimental.topics.read_plan.ReadPlanPartition`)

**Raises**

- [`RobotoReadPlanExecutionException`](/reference/python-sdk/roboto/exceptions/domain#roboto.exceptions.domain.RobotoReadPlanExecutionException): With kind `unsupported-timestamp`, for a unit other than s, ms, us or ns, which only a plan built without validation can hold.

**Returns**

- `Optional[roboto.time.TimeUnit]`
