CRM-15256 - when library for recursive dates

Complements https://github.com/civicrm/civicrm-core/pull/4068.