| Package | Description | 
|---|---|
| net.degreedays.api.data | For specifying and receiving degree-day data and temperature data from the API. | 
| net.degreedays.time | Classes for working with dates, times, and date-ranges in the context of degree days and energy data. | 
| Modifier and Type | Method and Description | 
|---|---|
| Day | TimeSeriesDataValue. day()Returns a non-null  Dayobject indicating the YYYY-MM-DD date
 that thisTimeSeriesDataValuefalls on in the local
 time-zone of the weather station. | 
| abstract Day | DatedDataValue. firstDay()Returns the non-null first  Dayof the period covered by thisDatedDataValue. | 
| abstract Day | DatedDataValue. lastDay()Returns the non-null last  Dayof the period covered by thisDatedDataValue. | 
| Modifier and Type | Method and Description | 
|---|---|
| TimeSeriesDataValue[] | TimeSeriesDataSet. getValuesWithin(Day day)Returns a non-null, possibly-empty, chronologically-ordered array of the
  TimeSeriesDataValueobjects from thisTimeSeriesDataSetthat fall within the specifiedDay. | 
| static DatedDataValue | DatedDataValue. of(double value,
  double percentageEstimated,
  Day singleDay)Returns a non-null  DatedDataValueobject with the specified
 value and percentage estimated, and covering just the specifiedDay. | 
| Modifier and Type | Method and Description | 
|---|---|
| Day | OffsetDayTime. day()Returns a non-null  Dayobject representing the YYYY-MM-DD
 component of thisOffsetDayTime. | 
| Day | DayTime. day()Returns a non-null  Dayobject representing the YYYY-MM-DD
 component of thisDayTime. | 
| Day | DayRange. dayAt(int zeroBasedIndex)Returns the non-null  Dayat the specified zero-based index
 within thisDayRange. | 
| Day | DayRange. first()Returns the non-null first  Dayin thisDayRange. | 
| static Day | Day. fromCalendar(java.util.Calendar calendar)Returns the non-null  Dayobject represented by theYEAR,MONTH, andDAY_OF_MONTHfields ofcalendar. | 
| static Day | Day. fromDateUtc(java.util.Date date)Returns the non-null  Dayobject represented bydate, as interpreted in the context of the UTC time-zone. | 
| static Day | Day. fromString(java.lang.String dateString)Parses a string date in ISO  YYYY-MM-DDformat (the format
 used by XML schema's date type), orYYYYMMDDformat. | 
| Day | DayRange. last()Returns the non-null last  Dayin thisDayRange. | 
| Day | Day. minusDays(int numberOfDays)Returns the non-null  Daythat comes the specifiednumberOfDaysbefore thisDayin the calendar. | 
| Day | Day. minusMonths(int numberOfMonths)Returns the non-null  Daythat comes the specifiednumberOfMonthsbefore thisDayin the calendar. | 
| Day | Day. minusWeeks(int numberOfWeeks)Returns the non-null  Daythat comes the specifiednumberOfWeeksbefore thisDayin the calendar. | 
| Day | Day. minusYears(int numberOfYears)Returns the non-null  Daythat comes the specifiednumberOfYearsbefore thisDayin the calendar. | 
| Day | Day. next()Returns the non-null  Daythat comes immediately after thisDayin the calendar. | 
| static Day | Day. of(int year,
  int monthOfYearWithJanAs1,
  int dayOfMonth)Returns a non-null  Dayobject representing a date with the
 specified year, month, and day. | 
| Day | Day. plusDays(int numberOfDays)Returns the non-null  Daythat comes the specifiednumberOfDaysafter thisDayin the calendar. | 
| Day | Day. plusMonths(int numberOfMonths)Returns the non-null  Daythat comes the specifiednumberOfMonthsafter thisDayin the calendar. | 
| Day | Day. plusWeeks(int numberOfWeeks)Returns the non-null  Daythat comes the specifiednumberOfWeeksafter thisDayin the calendar. | 
| Day | Day. plusYears(int numberOfYears)Returns the non-null  Daythat comes the specifiednumberOfYearsafter thisDayin the calendar. | 
| Day | Day. previous()Returns the non-null  Daythat comes immediately before thisDayin the calendar. | 
| static Day | Day. todayInSystemTimeZone()Returns the non-null  Dayobject representing the current
 date in the system time-zone. | 
| static Day | Day. todayInUtc()Returns the non-null  Dayobject representing the current
 date in the UTC time-zone. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Iterator<Day> | DayRange. iterator() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | Day. after(Day comparisonDay)Returns  trueif thisDayobject is
 chronologically aftercomparisonDay;falseotherwise. | 
| boolean | Day. before(Day comparisonDay)Returns  trueif thisDayobject is
 chronologically beforecomparisonDay;falseotherwise. | 
| int | Day. compareTo(Day comparisonDay)Compares two  Dayobjects for chronological ordering. | 
| boolean | DayRange. contains(Day testDay)Returns  trueif the specifiedDayis
 contained within thisDayRange;falseotherwise. | 
| int | Day. daysAfter(Day comparisonDay)Returns the number of days that this  Dayis aftercomparisonDay, which will be negative if thisDaycomes first chronologically. | 
| int | Day. daysBefore(Day comparisonDay)Returns the number of days that this  Dayis beforecomparisonDay, which will be negative ifcomparisonDaycomes first chronologically. | 
| DayRange | DayRange. greedyUnion(Day dayToIncludeInUnion)Returns the non-null  DayRangethat includes all the days
 within thisDayRange, the specifiedDay(dayToIncludeInUnion), and any days between. | 
| int | MaybeEmptyDayRanges. indexOf(Day day)Returns the index of the  DayRangethat containsday, or-1if no suchDayRangeexists in this chronologically-ordered set. | 
| int | DayRange. indexOf(Day day)Returns the index of the specified  Daywithin thisDayRange, or -1 if it is not contained within thisDayRange. | 
| static DayTime | DayTime. of(Day day,
  Time time)Returns a non-null  DayTimeobject with the specifiedDayandTime. | 
| static OffsetDayTime | OffsetDayTime. of(Day day,
  Time time,
  int offsetTotalMinutes)Returns a non-null  OffsetDayTimeobject with the specified
 local date, time, and UTC offset. | 
| DayRange | Day. to(Day firstOrLastDayInRange)Returns the non-null  DayRangecovering (inclusively) the
 days between thisDayandfirstOrLastDayInRange(which can be before, after, or equal to thisDay). | 
| Constructor and Description | 
|---|
| DayRange(Day first,
        Day last)Constructs a  DayRangeobject that starts on the specifiedfirstday and ends on the specifiedlastday. | 
| DayTime(Day day,
       Time time)Constructs a  DayTimeobject with the specifiedDayandTime. | 
| OffsetDayTime(Day day,
             Time time,
             int offsetTotalMinutes)Constructs an  OffsetDayTimeobject with the specified local
 date, time, and UTC offset. | 
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.