Revert "Remove legacy functions related to the calendar #83"

This reverts commit fec07ee04c419931647e87475fe3368123d2a6b1.