To use the library, first instantiate a Location object with latitude and longitude strings, then create a SunriseSunsetCalculator using that location and a valid time zone identifier (e.g., "America/New_York"). You can then retrieve sunrise/sunset times as either formatted Strings or Calendar objects for a specific date.
Location location = new Location("39.9522222", "-75.1641667");
SunriseSunsetCalculator calculator = new SunriseSunsetCalculator(location, "America/New_York");
// Get sunrise as a String
String officialSunrise = calculator.getOfficialSunriseForDate(Calendar.getInstance());
// Get sunset as a Calendar object
Calendar officialSunset = calculator.getOfficialSunsetCalendarForDate(Calendar.getInstance());