Sometimes concepts we took for granted are challenged. Did this happen to time recently?
Dealing with dates and time is always tricky, and in Solidity there is no difference. Although there are some keywords that help us like now and units like days or hours there are a few things we have to keep in mind. You should also keep in mind that the EVM counts time in seconds.
Everything is a Unix timestamp!
In general, there are two options to include a time factor into a Solidity contract: relating to the current block number or relating to the current timestamp. There are also two interesting points, much thanks Roman Sivakov & Banteg for spotting and bringing them up in a dev-chat:
Leap Seconds & Time in Solidity was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.
Also read: Test Atari 7800+ : faut-il craquer pour la réédition de la console rétro ?