public Date getDate(PersianAlgorithm algorithm) {

        ZonalOffset offset = PersianAlgorithm.STD_OFFSET;

        if (algorithm == DEFAULT_COMPUTATION) {
            return new Date(this, DEFAULT_COMPUTATION, offset);
        }

        long utcDays = DEFAULT_COMPUTATION.transform(this, offset);
        return new Date(algorithm.transform(utcDays, offset), algorithm, offset);

    }
public Date getDate ( PersianAlgorithm algorithm ) { ZonalOffset offset = PersianAlgorithm . STD_OFFSET ; if ( algorithm == DEFAULT_COMPUTATION ) { return new Date ( this , DEFAULT_COMPUTATION , offset ) ; } long utcDays = DEFAULT_COMPUTATION . transform ( this , offset ) ; return new Date ( algorithm . transform ( utcDays , offset ) , algorithm , offset ) ; }
/*[deutsch]
<p>Erh&auml;lt eine alternative Datumssicht spezifisch f&uuml;r den angegebenen Algorithmus. </p>

@param   algorithm   calendar computation
@return  Persian date (possibly modified)
@throws  IllegalArgumentException in case of date overflow
@since   3.33/4.28