Skip to content

Timestamp


Calls


set

Attributes

Name Type
now T::Moment

Python

call = substrate.compose_call(
    'Timestamp', 'set', {'now': 'u64'}
)

Storage functions


DidUpdate

Python

result = substrate.query(
    'Timestamp', 'DidUpdate', []
)

Return value

'bool'

Now

Python

result = substrate.query(
    'Timestamp', 'Now', []
)

Return value

'u64'

Constants


MinimumPeriod

Value

6000

Python

constant = substrate.get_constant('Timestamp', 'MinimumPeriod')