Click the green flag and watch Scratch Cat demo these blocks.
I made this because I felt like it. The fact that years are not exactly 365.25 days long turned out more difficult to account for than expected.