Returns the timestamp of the current block.

Signature

pub fn get_block_timestamp() -> u64

Examples

use starknet::get_block_timestamp;

let block_timestamp = get_block_timestamp();