- getHours
Gets the number of hours that this period represents.
- hours
Obtains an instance of Hours that may be cached.Hours is immutable, so instances
can be cached and s
- hoursBetween
Creates a Hours representing the number of whole hours between the two specified
partial datetimes.
- <init>
Creates a new instance representing a number of hours. You should consider using
the factory method
- getValue
- minus
Returns a new instance with the specified number of hours taken away. This
instance is immutable and
- plus
Returns a new instance with the specified number of hours added. This instance
is immutable and unaf
- hoursIn
Creates a Hours representing the number of whole hours in the specified
interval.
- toStandardDuration
Converts this period in hours to a duration in milliseconds assuming a 60 minute
hour and 60 second
- toStandardSeconds
Converts this period in hours to a period in seconds assuming a 60 minute hour
and 60 second minute.
- isLessThan
Is this hours instance less than the specified number of hours.
- parseHours
Creates a new Hours by parsing a string in the ISO8601 format 'PTnH'. The parse
will accept the full