Skip to content

Accessing Windows internal leap second information #1624

Answered by mnatsuhara
MattStephanson asked this question in Q&A
Discussion options

You must be logged in to vote

@MattStephanson we've finally heard back from the team who implemented the Windows leap second registry!

Leap second information has not been exposed as an API or documentation externally. We have only exposed it via w32tm.exe, as shown here as well. This was because there were no customer asks for an API.
Please be aware that leap second data is directly available in shared memory of each process. Using the registry works in most situations, but not every situation – eg: if a leap second is removed from the list or if there is an error that the Kernel validates.

They've pointed us to some code that w32tm uses to deal with leap seconds that should be more robust in dealing with these ed…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@MattStephanson
Comment options

@mnatsuhara
Comment options

@MattStephanson
Comment options

@StephanTLavavej
Comment options

Comment options

You must be logged in to vote
3 replies
@MattStephanson
Comment options

@mnatsuhara
Comment options

@StephanTLavavej
Comment options

Answer selected by StephanTLavavej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants