How to automatically update the copyright year?

If your website is still showing “© 2019” and it should be “© 2020” then take the chance to update once and have it correct forever using one in all the code snippets…