public Long getHoursInPeriod() {
        if (isBounded()) {
            long duration = getTo() - getFrom();
            return duration / MS_IN_HOUR;
        }
        return null;
    }
@return whole hours in this period
stroom-util/src/main/java/stroom/util/Period.java