Uses of Class
org.joda.time.Hours
Packages that use Hours
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
-
Uses of Hours in org.joda.time
Fields in org.joda.time declared as HoursModifier and TypeFieldDescriptionstatic final HoursHours.EIGHTConstant representing eight hours.static final HoursHours.FIVEConstant representing five hours.static final HoursHours.FOURConstant representing four hours.static final HoursHours.MAX_VALUEConstant representing the maximum number of hours that can be stored in this object.static final HoursHours.MIN_VALUEConstant representing the minimum number of hours that can be stored in this object.static final HoursHours.ONEConstant representing one hour.static final HoursHours.SEVENConstant representing seven hours.static final HoursHours.SIXConstant representing six hours.static final HoursHours.THREEConstant representing three hours.static final HoursHours.TWOConstant representing two hours.static final HoursHours.ZEROConstant representing zero hours.Methods in org.joda.time that return HoursModifier and TypeMethodDescriptionHours.dividedBy(int divisor) Returns a new instance with the hours divided by the specified divisor.static HoursHours.hours(int hours) Obtains an instance ofHoursthat may be cached.static HoursHours.hoursBetween(ReadableInstant start, ReadableInstant end) Creates aHoursrepresenting the number of whole hours between the two specified datetimes.static HoursHours.hoursBetween(ReadablePartial start, ReadablePartial end) Creates aHoursrepresenting the number of whole hours between the two specified partial datetimes.static HoursHours.hoursIn(ReadableInterval interval) Creates aHoursrepresenting the number of whole hours in the specified interval.Hours.minus(int hours) Returns a new instance with the specified number of hours taken away.Returns a new instance with the specified number of hours taken away.Hours.multipliedBy(int scalar) Returns a new instance with the hours multiplied by the specified scalar.Hours.negated()Returns a new instance with the hours value negated.static HoursHours.parseHours(String periodStr) Creates a newHoursby parsing a string in the ISO8601 format 'PTnH'.Hours.plus(int hours) Returns a new instance with the specified number of hours added.Returns a new instance with the specified number of hours added.static HoursHours.standardHoursIn(ReadablePeriod period) Creates a newHoursrepresenting the number of complete standard length hours in the specified period.Days.toStandardHours()Converts this period in days to a period in hours assuming a 24 hour day.Duration.toStandardHours()Converts this duration to a period in hours assuming that there are the standard number of milliseconds in an hour.Minutes.toStandardHours()Converts this period in minutes to a period in hours assuming a 60 minute hour.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.Seconds.toStandardHours()Converts this period in seconds to a period in hours assuming a 60 minute hour and 60 second minute.Weeks.toStandardHours()Converts this period in weeks to a period in hours assuming a 7 day week and 24 hour day.Methods in org.joda.time with parameters of type HoursModifier and TypeMethodDescriptionbooleanHours.isGreaterThan(Hours other) Is this hours instance greater than the specified number of hours.booleanHours.isLessThan(Hours other) Is this hours instance less than the specified number of hours.Returns a new instance with the specified number of hours taken away.Returns a new instance with the specified number of hours added.