Class to manage time periods within haystack applications