Skip to main content

Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
2 answers

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 ...
Pankaj's user avatar
  • 2,021
3 votes
3 answers

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 ...
Andy's user avatar
  • 73
3 votes
1 answer

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?
Karanvir Singh's user avatar
3 votes
1 answer

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 ...
basketball9's user avatar
2 votes
1 answer

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 ...
Matthiew's user avatar
1 vote
1 answer

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?
Andy's user avatar
  • 73
1 vote
1 answer

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?
René Hürter's user avatar