If you look at the example from the documentation, which is somewhat spread out and therefore a bit difficult to locate:
http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/Calendar/Time...
there you see an example that sort of gives you an idea of how you step through the months.