Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:34:26+00:00 2026-06-06T18:34:26+00:00

The formula mentioned in post Google’s Leap Second Smear Techinque :Modulating lie over a

  • 0

The formula mentioned in post Google’s Leap Second Smear Techinque :Modulating “lie” over a time window w before midnight:

lie(t) = (1.0 - cos(pi * t / w)) / 2.0 

There is no description of the math behind this. Can someone explain why the formula works. Also can this be used for any situation where we want to synchronize time gradually over a window and avoid abrupt jumps ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:34:28+00:00Added an answer on June 6, 2026 at 6:34 pm

    This works because the graph of cos(x) varies smoothly over time. It doesn’t change abruptly, though it does change non-linearly.

    Let’s say we’re smearing over a window of w = 86400. Here’s what the lie is from t = 0 to t = 86400:

    Graph of lie(t)

    Towards the beginning of the day, the lie we’re telling is very small. The time you’re reporting (t + lie(t)) is almost identical to what the real time should be (t). The smeared time you’re reporting is also changing very slowly over time. Ideally, for each 1 real second that passes you should report 1 second has passed. In smeared time, what you instead see is:

    Change in smeared time

    Towards the middle of the day, we see the largest changes. But those changes are on the order of 10^-5. They’re small enough that anyone receiving the smeared time wouldn’t suspect that something is wrong. At noon, you’re talking about differences of microseconds in how much faster smeared time is moving.

    In Google’s case, they want to smoothly change time very slowly so that local corrections don’t occur. If they abruptly change time by a second then local corrections may occur. And from the blog post, it sounds like this generally leads to very bad things happening (i.e. stuff breaks).

    One thing to note is they may not be smearing the leap second out over a day. It may be over a full year. In that case, the change is even smaller. In this case, the day to day changes are on the order of nanoseconds.

    If you want to know about the actual math — that part isn’t very interesting. cos(x) is bounded by [-1, +1]. At x = 0 we have cos(0) = 1 and at x = pi, cos(pi) = -1. The value t / w linearly increases from 0 to 1 from t = 0 ... w. So cos(pi * t / w) changes from +1 at t = 0 down to -1 at t = w. The rest follows from this.

    The periodic qualities of cos(x) are actually quite important. We can’t just choose to use something like lie(t) = t / w. If we did, the lie would always increase over time. Leap seconds would just keep on piling up at a rate of 1 / w per second. cos(x) has the property that it oscillates between -1 and +1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As I mentioned in an earlier post, I will be using flot for an
what kind of formula is being used in the calculator mentioned below https://www.lifeclub.com/public/calculator.aspx i
Semi clustering algorithm is mentioned in the Google Pregel paper . The score of
What formula would I use in a persisted column so that I can add
2007 formula written with A1 style, how is it possible to convert the A1
I have a boolean formula: (x_{1} or x_{2}) and (x_{3} or x_{4}) and .....
I have this original formula from a medical research book: Log(e) (EFW) = (-4.564+(0.282*AC)-(0.00331*AC^2))*1000
we can remove formula from one cell by cell.setCellFormula(null) . but if i want
I found this formula to calculate mortgage payments The interest rate is IntRate ,
I need a formula in excel to round my price list. Last digit of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.