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 |
---|---|
Time |
TimeSeriesDataValue.time()
Returns a non-null
Time object indicating the hh:mm time of
this TimeSeriesDataValue in the local time-zone of the
weather station. |
Modifier and Type | Method and Description |
---|---|
static Time |
Time.fromCalendar(java.util.Calendar calendar)
Returns the non-null
Time object represented by the
HOUR_OF_DAY and MINUTE fields of
calendar . |
static Time |
Time.fromString(java.lang.String timeString)
Parses a string time in ISO
hh:mm format (the format used
by XML schema's time type) or hhmm format. |
static Time |
Time.of(int hour,
int minute)
Returns a non-null
Time object representing a time with the
specified hour and minute. |
Time |
OffsetDayTime.time()
Returns a non-null
Time object representing the hh:mm
component of this OffsetDayTime . |
Time |
DayTime.time()
Returns a non-null
Time object representing the hh:mm
component of this DayTime . |
Modifier and Type | Method and Description |
---|---|
boolean |
Time.after(Time comparisonTime)
Returns
true if this Time is chronologically
after comparisonTime (assuming both are times within the
same day); false otherwise. |
boolean |
Time.before(Time comparisonTime)
Returns
true if this Time is chronologically
before comparisonTime (assuming both are times within the
same day); false otherwise. |
int |
Time.compareTo(Time comparisonTime)
Compares two
Time objects for chronological ordering
(assuming both are times within the same day). |
static DayTime |
DayTime.of(Day day,
Time time)
Returns a non-null
DayTime object with the specified
Day and Time . |
static OffsetDayTime |
OffsetDayTime.of(Day day,
Time time,
int offsetTotalMinutes)
Returns a non-null
OffsetDayTime object with the specified
local date, time, and UTC offset. |
Constructor and Description |
---|
DayTime(Day day,
Time time)
Constructs a
DayTime object with the specified
Day and Time . |
OffsetDayTime(Day day,
Time time,
int offsetTotalMinutes)
Constructs an
OffsetDayTime object 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.