[][src]Function ink_env::block_timestamp

pub fn block_timestamp<T>() -> Result<T::Timestamp> where
    T: Environment

Returns the current block timestamp.

Errors

If the returned value cannot be properly decoded.