Questions tagged [datetime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
33 views

Timestamp in Ethereum

I have a smart contract where the user inputs temperature readings, I'd like to add a time stamp to relate those reading with a current time of submission. I understand that in Ethereum we only have ...
1
vote
1answer
33 views

Dates of ERC20 tokens transactions

I'm an individual who is interested to ICOs which are selling ERC20 tokens. My question is related to an issue that, for most of the ERC20 tokens, the dates of transactions do not fall within the ICO ...
1
vote
1answer
85 views

What is the time zone of the Ethereum block chain?

In Solidty, you can use now keyword or block.timestamp to get the timestamp of the current block. This value, which is set by the block miner, can be used to work with time in your smart contract (...
1
vote
1answer
41 views

how to get input of time in solidity?

I want to run a session for a product in auction , my product struct contains the time interval we need for being the session of the bidding. While initializing a product, I need to take the input of ...
0
votes
1answer
24 views

Is there any protection in the Ethereum consensus or network protocol to avoid a block being mined with a timestamp 1000 years ahead of UTC time? [duplicate]

Will other nodes refuse the mined block if the timestamp is too far apart from local or UTC timestamp or will they blindely accept the block if the PoW is correct?
0
votes
2answers
78 views

Periodic time calculation oracle needed

I want to make a calculation with the blockchain every day at the same hour. Iknow every miners got his own time. I think i had to find an oracle. Any idea ?
2
votes
2answers
38 views

Reference of a transaction date [closed]

I am building a lotery with one game per day on Ethereum but I need to know what is time zone is the transaction date in Solidity. Is it gmt+0?
3
votes
1answer
52 views

Setting time requirements in Solidity

I want a function to only be able to be called after a certain specific period of time has passed from the contract's inception. Generally, I was using block.number for that. As in: require(block....
2
votes
1answer
204 views

How Can I Convert Between A Solidity Timestamp And Year/Month/Day Hour:Minute:Second?

Solidity provides the uint256 now or block.timestamp Special Variable. How can I convert between this Solidity timestamp and year/month/day hour:minute:second?