Add calendar pattern.

This is copied from the slc pattern, with a few structural changes.