I wrote a quick script to test it. It does not take leap seconds into consideration and assumes all months to have 31 days (would be easy to modify, but it is sufficient for the task).
https://gist.github.com/zulln/110a1d454d07339c496cc8ec6349fe...
This means this does not work about 200 times a day in addition to about hundred whole days (for every hundred years).