@Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("[");
        builder.append("From: ");
        if (getFrom() == null) {
            builder.append("null");
        } else {
            builder.append(new Date(getFrom()));
        }
        builder.append(", To: ");
        if (getTo() == null) {
            builder.append("null");
        } else {
            builder.append(new Date(getTo()));
        }
        builder.append(", Duration: ");
        builder.append(getDuration());
        builder.append("]");
        return builder.toString();
    }
Gets the duration as a user readable string.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/Period.java