def hours(daterange=None, ticket=None, milestone=None, project=None, client
    =None):
    """ Returns the sum of the hours of the contained time entries,
            optionally only for a given ticket, milestone, project or client
        """
