@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final TimePeriod that = (TimePeriod) o;
        return from.equals(that.from) &&
                to.equals(that.to);
    }
Gets the duration as a user readable string.
stroom-util/src/main/java/stroom/util/time/TimePeriod.java