Interface DaylightSensor

All Superinterfaces:
Sensor

public interface DaylightSensor
extends Sensor
  • Method Details

    • isDaylightTime

      boolean isDaylightTime()
      Tells whether the current time is after sunrise but before sunset.
      Returns:
      true if it's daylight time, false if not.