[ntp:questions] Leap second functional question
Dean Weiten
dmw at weiten.com
Mon Feb 18 03:22:53 UTC 2008
I did it again, didn't correct the left hand time stamps!
Contrived Example - Adding a Leap Second
========================================
As an example, let's say that there was a leap second to be added on
2008-01-01 at 00:00:00.
If the leap second indicator bits turn off at the **end** of the leap
second it announces, and if the timestamp increases monotonically right
through, then the values returned in this contrived example might look
like this:
Time Timestamp Leap Second Bits
---- --------- ----------------
2007-12-31 23:59:58.0000 CB2400FE.00000000 01
2007-12-31 23:59:59.0000 CB2400FF.00000000 01
2007-12-31 23:59:59.5000 CB2400FF.80000000 01
2007-12-31 23:59:59.9000 CB2400FF.E6666666 01
2007-12-31 23:59:60:0000 CB240100.00000000 01
2007-12-31 23:59:60.5000 CB240100.80000000 01
2007-12-31 23:59:60.9000 CB240100.E6666666 01
2008-01-01 00:00:00.0000 CB240101.00000000 00
2008-01-01 00:00:01.0000 CB240102.00000000 00
Contrived Example - Deleting a Leap Second
==========================================
Another contrived example, let's say that there was a leap second to be
removed on 2008-01-01 at 00:00:00.
Then the values returned in this contrived example might look like this:
Time Timestamp Leap Second Bits
---- --------- ----------------
2007-12-31 23:59:58.0000 CB2400FE.00000000 01
2007-12-31 23:59:58.5000 CB2400FE.80000000 01
2007-12-31 23:59:58.9000 CB2400FE.E6666666 01
2008-01-01 00:00:00.0000 CB2400FF.00000000 00
2008-01-01 00:00:01.0000 CB240100.00000000 00
Is this correct? Or, can you mark up my examples to show how I might be
in error?
More information about the questions
mailing list