> For the complete documentation index, see [llms.txt](https://0xkowloon.gitbook.io/anchor-for-evm-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xkowloon.gitbook.io/anchor-for-evm-developers/block-timestamp.md).

# Block Timestamp

**EVM**

```solidity
block.timestamp
```

**Solana**

```rust
clock::Clock::get()
    .unwrap()
    .unix_timestamp
    .try_into()
    .unwrap();
```
