Hours |
Hours.dividedBy(int divisor) |
Returns a new instance with the hours divided by the specified divisor.
|
static Hours |
Hours.hours(int hours) |
Obtains an instance of Hours that may be cached.
|
static Hours |
Hours.hoursBetween(ReadableInstant start,
ReadableInstant end) |
Creates a Hours representing the number of whole hours
between the two specified datetimes.
|
static Hours |
Hours.hoursBetween(ReadablePartial start,
ReadablePartial end) |
Creates a Hours representing the number of whole hours
between the two specified partial datetimes.
|
static Hours |
Hours.hoursIn(ReadableInterval interval) |
Creates a Hours representing the number of whole hours
in the specified interval.
|
Hours |
Hours.minus(int hours) |
Returns a new instance with the specified number of hours taken away.
|
Hours |
Hours.minus(Hours hours) |
Returns a new instance with the specified number of hours taken away.
|
Hours |
Hours.multipliedBy(int scalar) |
Returns a new instance with the hours multiplied by the specified scalar.
|
Hours |
Hours.negated() |
Returns a new instance with the hours value negated.
|
static Hours |
Hours.parseHours(java.lang.String periodStr) |
Creates a new Hours by parsing a string in the ISO8601 format 'PTnH'.
|
Hours |
Hours.plus(int hours) |
Returns a new instance with the specified number of hours added.
|
Hours |
Hours.plus(Hours hours) |
Returns a new instance with the specified number of hours added.
|
static Hours |
Hours.standardHoursIn(ReadablePeriod period) |
Creates a new Hours representing the number of complete
standard length hours in the specified period.
|
Hours |
Days.toStandardHours() |
Converts this period in days to a period in hours assuming a
24 hour day.
|
Hours |
Duration.toStandardHours() |
Converts this duration to a period in hours assuming that there are the
standard number of milliseconds in an hour.
|
Hours |
Minutes.toStandardHours() |
Converts this period in minutes to a period in hours assuming a
60 minute hour.
|
Hours |
Period.toStandardHours() |
Converts this period to a period in hours assuming a
7 day week, 24 hour day, 60 minute hour and 60 second minute.
|
Hours |
Seconds.toStandardHours() |
Converts this period in seconds to a period in hours assuming a
60 minute hour and 60 second minute.
|
Hours |
Weeks.toStandardHours() |
Converts this period in weeks to a period in hours assuming a
7 day week and 24 hour day.
|