Sometimes concepts we took for granted are challenged. Did this happen to time recently?Should We Abandon the Leap Second? 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. 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: First, did you know that the future behavior of the Earth’s rotation is unknown, so the UT1-UTC difference is unpredictable and can only be derived from observations? Second, with very small changes in the angular velocity of the Earth’s rotation, leap seconds can run up quite quickly, because a small change in angular velocity is multiplied by time, i.e., there is a cumulative effect. In Paris, by the way, there is a separate department that keeps an eye on the leap seconds issue! Stay safe! Leap Seconds & Time in Solidity was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this storySometimes concepts we took for granted are challenged. Did this happen to time recently?Should We Abandon the Leap Second? 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. 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: First, did you know that the future behavior of the Earth’s rotation is unknown, so the UT1-UTC difference is unpredictable and can only be derived from observations? Second, with very small changes in the angular velocity of the Earth’s rotation, leap seconds can run up quite quickly, because a small change in angular velocity is multiplied by time, i.e., there is a cumulative effect. In Paris, by the way, there is a separate department that keeps an eye on the leap seconds issue! Stay safe! 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

Leap Seconds & Time in Solidity

2025/09/16 23:46

Sometimes concepts we took for granted are challenged. Did this happen to time recently?

Should We Abandon the Leap Second?

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.

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:

  • First, did you know that the future behavior of the Earth’s rotation is unknown, so the UT1-UTC difference is unpredictable and can only be derived from observations?
  • Second, with very small changes in the angular velocity of the Earth’s rotation, leap seconds can run up quite quickly, because a small change in angular velocity is multiplied by time, i.e., there is a cumulative effect. In Paris, by the way, there is a separate department that keeps an eye on the leap seconds issue!

Stay safe!


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.

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Michael Saylor Teases Another Bitcoin Buy As MSTR Stock Dips to Five-Month Lows

Michael Saylor Teases Another Bitcoin Buy As MSTR Stock Dips to Five-Month Lows

The post Michael Saylor Teases Another Bitcoin Buy As MSTR Stock Dips to Five-Month Lows appeared on BitcoinEthereumNews.com. Michael Saylor, executive chairman of Strategy, remains committed to aggressive Bitcoin acquisitions despite market skepticism. In a recent interview, he hinted at further purchases and accused short sellers of amplifying negative sentiment through bot attacks. Saylor Hints at More Bitcoin Buys Despite MSTR Stock Dip In the conventional Sunday Post on X, Michael Saylor has hinted that his Strategy will continue to purchase Bitcoin. This comes as the company navigates online criticism and market volatility. In an interview with podcaster Natalie Brunell, Saylor shared his conviction that Bitcoin is a valuable long-term investment, despite recent fluctuations. MicroStrategy’s (MSTR) stock recently hit a five-month low of $323 per share, down by 16%. In the meantime, Bitcoin experienced only an 8% decline from its peak.  Source: Google; MSTR Stock Price-September 22nd, 2025 Despite these market dips, Saylor emphasized that the company’s Bitcoin strategy is the best path forward. According to Saylor, the continuous Bitcoin acquisition is central to Strategy’s business model, and he expressed confidence in the asset over time. His remarks show Strategy’s undeterred ambition to stack more BTC during market dips. Strategy Continues Its Bitcoin Acquisition, Now Holding 638,985 BTC Under Saylor’s leadership, Strategy has become a major player in corporate Bitcoin ownership. The company has spent $47 billion on Bitcoin at an average price of $73,913 per BTC. It purchases the asset in bulk, often during price dips. The latest Strategy Bitcoin acquisitions include 1,955 BTC for $217.4 million at an average price of $114,562 per Bitcoin and 525 BTC for $60.2 million at $111,196 per Bitcoin. As of now, Strategy holds a total of 638,985 BTC worth $73.95 billion.  Although Bitcoin’s price briefly peaked at $113,000 before dipping back below $108,000, Saylor remains undeterred. He continues the company’s strategy of acquiring Bitcoin at advantageous prices. MicroStrategy’s position now…
Share
BitcoinEthereumNews2025/09/22 11:10
Here’s the XRP Price If UK Parliament Declares Ripple Key to Global Payments

Here’s the XRP Price If UK Parliament Declares Ripple Key to Global Payments

Ripple’s XRP is trading around $3.00 today, but a new development out of the UK could change everything. According to a tweet from X Finance Bull, Ripple and its token XRP are now being discussed at the UK Parliament as critical infrastructure for global payments.  This isn’t just industry chatter anymore. Lawmakers are looking at
Share
Coinstats2025/09/22 02:00
Watchdog frowns on BARMM move to remove ‘none of the above’ from ballots

Watchdog frowns on BARMM move to remove ‘none of the above’ from ballots

POLLS. Residents queue to vote for the BARMM local elections, at the Ragondingan Central Elementary School, Buadiposo-Buntong, Lanao Del Sur, on May 12, 2025.
Share
Rappler2026/01/21 09:20