You're right. I didn't try it, and I couldn't see how the year would increment, but it does!
X Mod Y gives the remainder when X is divided by Y, so 12 goes to 0 +1 (January).