update leap second table to 28 Jun 2025 based on IERS Bulletin C 68#96
update leap second table to 28 Jun 2025 based on IERS Bulletin C 68#96yunjunz merged 1 commit intoinsarlab:mainfrom AndreHauschild:main
Conversation
|
Thanks for noting this- do we have no way to check in the code that the time period is valid? That seems like a useful check to run in python before calling the Fortran module |
|
That is a good question! My understanding is that for performance reasons, The only option I can think of as an altenative to this manual procedure is to retrieve the most recent version of the leap second history from the IERS website at run-time and then check the date. But I do not think that is a practical approach. |
|
I know that in C, there is typically a leapsecond file as part of the libc (e.g. https://github.com/bminor/glibc/blob/master/timezone/leapseconds) so any code using libc for UTC conversions will continue to work without recompilation as long as libc is kept up to date. Does anything similar exist for fortran? |
yunjunz
left a comment
There was a problem hiding this comment.
LGTM. Thank you @AndreHauschild.
According to IERS Bulletin C 68 no leap second will be introduced at the end of December 2024. The next possible insertion date is therefore end of June 2025.