An xkcd Leap-Smearing Clock Anthony Biondo 2020-02-11
Humor In the current xkcd comic, a new method of adjusting for leap years is proposed. Instead of adding on a day called February 29th, we simply make the month of February about 3.4% longer ... by slowing down our clocks by 3.4%. The clock below implements this, along with an explanation below: Explanation:
The clock only updates on the slower "tick," of about 1.03 seconds, so if you compare this to your watch it should be going slower, and the two should go in and out of phase every ~30 seconds. If you watch the line in the explanation above with the current unix time, it will skip a number every ~30 seconds because it is ticking too slowly. The clock is configured to update internally every 10ms, and though browsers might not keep up with that, it is hopefully reasonably accurate. Rendering should only happen on the slower tick. Copyright © 2019, Anthony Biondo. The content of posts on this website are licensed under the Creative Commons Attribution-ShareAlike 4.0 license, and samples of source code in the posts are licensed under the MIT License, unless otherwise stated. This site uses a self-hosted instance of fathom to collect anonymous data for analytics. The content of the posts on this website represent my own opinion, and not that of my employer or of my clients. While this website is made available by an attorney, its content is provided for educational purposes only, and while it may offer general information about the law, it does not provide specific legal advice. Use of this website does not form an attorney-client relationship, and this should not be used as a substitute for competent legal advice from a licensed attorney in your area. Attorney Advertising.