Skip to main content

Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
18 views

How to create a 60 seconds timer in a pallet

we are creating a game which give the player a 60 seconds rounds to play. How can we set a timer of 60 seconds in a substrate pallet?
2 votes
1 answer
98 views

Reduce block time

I was wondering about block time and block size. Why are they defined the way they are? Is it possible to reduce the time between two blocks without changing the consensus mechanism? What would happen ...
3 votes
1 answer
295 views

What happens in epoch of a blockchain?

I have been working on a substrate blockchain. I want to know about the events and process happening in each epoch of blockchain and what are the concepts behind the epoch?
3 votes
3 answers
373 views

How to use the scale decoder to parse extrinsics?

How to use the scale decoder to parse extrinsics? I tried to get the timestamp of this block in this way, but the result was not correct. Which friend has a specific example of analysis for me? thank ...
1 vote
1 answer
67 views

How does RPC getblock get the confirmation time of the block

After calling the RPC method getblock. How can I get the confirmation time of this block in the genblock method?
3 votes
1 answer
99 views

Length of time of a block

Is it possible to get the average length of time (in UNIX time) per block on Substrate? I basically want the average session length in UNIX time. I know we can get it in terms of block numbers. But I ...
8 votes
2 answers
403 views

How can we convert the timestamp to the date/time in Substrate pallet?

I need to get the system time in my pallet for which I am able to get the epoch format like 1590512778000. Now I need to convert this time to the date-time. I tried many ways but none worked. Can you ...