This is John Sauter's code for performing leapsecond-aware date and time arithmetic on struct tm. John didn't have a good place to host it, so I am hosting it here for him.
The code is available in two formats, .tar.gz and .zip, and via two protocols, HTTP and anonymous FTP.
HTTP downloads:
tmcode-20170127.tar.gz
tmcode-20170127.zip
FTP downloads:
tmcode-20170127.tar.gz
tmcode-20170127.zip
MD5 checksums:
tmcode-20170127.tar.gz: e410bfc884baaa6a1fad61d160a6a023
tmcode-20170127.zip: b99b735a607d82a88c5a7d0be2fb4a21