Show / Hide Table of Contents

Runtime.Time Attribute

Gets the current block time stamp.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public static extern uint Time

Attribute: unix time stamp. Unsigned Integer.

Example

public static bool Main()
{
    if (Runtime.Time >= 1587959138)
    {
        // do something;
    }
}

Back