meteo-core/src/main/java/no/api/meteo/entity/core/service/sunrise/SunriseDate.java
public boolean isSun(ZonedDateTime currentDate) {
        if (getSun().getNeverRise()) {
            return false;
        } else if (getSun().getNeverSet()) {
            return true;
        }
        return timeWithinPeriod(currentDate);
    }
public boolean isSun(ZonedDateTime currentDate) {
        if (getSun().getNeverRise()) {
            return false;
        } else if (getSun().getNeverSet()) {
            return true;
        }
        return timeWithinPeriod(currentDate);
    }
Check if the sun is shining for a given time.

@param currentDate
The time (date) to be checked.

@return <code>true</code> if the sun has raised, else <code>false</code>.