Solidity Tutorial – All About Time Units

https://jeancvllr.medium.com/solidity-tutorial-all-about-time-units-b392324bea32

Solidity Tutorial – All About Time Units

photo by Jon Tyson on Unsplash

After covering how to deal with ether units in Solidity in “All About Ether Units”, we will now cover time units.

In this article, we will look at the available suffix in Solidity for handling time in smart contracts.

We will see that working with time units in Solidity has its pitfalls, due to leap seconds and and the vulnerabilities around leap seconds and the fact…