Questions tagged [datetime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
45 views

Solidity: Is there any way to store the start time of solidity code? now() function returns block.timestamp only

I wanted to get a start time of solidity code, so I used now() previous which only returns block.timestamp whenever the solidity got started. Is there any way to store or know the start time of ...
0
votes
0answers
16 views

How can I specify a date picker in one of the fields in my ContractForm React component?

I'm using the ContractForm React component available in the drizzle-react-component library. It's super nice and easy to setup and use, but I am dealing with a date in one of the fields (which is ...
0
votes
1answer
29 views

is it possible triggering a contract on specific date? [duplicate]

Can I trigger a smart contract on specific date? If I deploy a contract today and I want execute some function of that contract tomorrow without any exteral intervention. Is it possible?
0
votes
1answer
40 views

Conversion from calendar format into timestamp format

I see a lot of discussion about date and time, timestamp... But they don't answer to my question: How can i convert from calendar format into timestamp format for comparing datetime? e.g: I have this ...
4
votes
1answer
79 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
55 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 ...
2
votes
1answer
248 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
67 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
26 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
79 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
45 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
76 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
389 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?