Added support for time based policies.

Jira issue: WP-1144
Merge pull request #39 from steverc/WP-1144-policyTiming

Added support for time based policies.