Added support for time based policies.

Jira issue: WP-1144