I have a library which needs to know the number of seconds since a previous epoch. This needs to work across leap second boundaries. One of the functions to make it easier for users is to specify the time in unix time - which of course does not take account for leap seconds. This is easily handled if I know when leap seconds have (or will be) inserted (or removed).
Is there any standard way of getting a list of leap second events, other than just keeping a hardcoded table (or similar), which of course needs to be updated every couple of years?