> For the complete documentation index, see [llms.txt](https://subsembly.gitbook.io/subsembly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://subsembly.gitbook.io/subsembly/modules/pre-built/timestamp.md).

# Timestamp

Get and set on-chain time

### Overview

The Timestamp pallet allows the validators to set and validate a timestamp with each block.

It uses **`inherents`** for timestamp data, which is provided by the block author and validated/verified by other validators. The timestamp can be set only once per block and must be set each block. There could be a constraint on how much time must pass before setting the new timestamp.

### Dispatchable Calls

* **`set`** - sets the current time. When setting the new time, it must be greater than the last one (set into storage) with at least a MinimumPeriod

### Configuration

Timestamp requires to set following constants during the runtime initialisation:

* **`minimumPeriod`** - minimum period between timestamps. Also, minimal interval between two blocks.
