Hi
i think you can use " time.h"
in C++ the library is called < ctime >.
tm_sec → is “leap seconds”
translate this to your language:
https://gl.wikibooks.org/wiki/C/time.h
At the end of the page you have a table.
NOTE: you can use the commandline (“MAN command”) to see the linux manual too… it has a section dedicated to C language . You will find the same information there.
Best Regards!!