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 Hours
    Modifier and Type
    Field
    Description
    static final Hours
    Hours.EIGHT
    Constant representing eight hours.
    static final Hours
    Hours.FIVE
    Constant representing five hours.
    static final Hours
    Hours.FOUR
    Constant representing four hours.
    static final Hours
    Hours.MAX_VALUE
    Constant representing the maximum number of hours that can be stored in this object.
    static final Hours
    Hours.MIN_VALUE
    Constant representing the minimum number of hours that can be stored in this object.
    static final Hours
    Hours.ONE
    Constant representing one hour.
    static final Hours
    Hours.SEVEN
    Constant representing seven hours.
    static final Hours
    Hours.SIX
    Constant representing six hours.
    static final Hours
    Hours.THREE
    Constant representing three hours.
    static final Hours
    Hours.TWO
    Constant representing two hours.
    static final Hours
    Hours.ZERO
    Constant representing zero hours.
    Methods in org.joda.time that return Hours
    Modifier and Type
    Method
    Description
    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
    Creates a Hours representing the number of whole hours between the two specified datetimes.
    static Hours
    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.minus(int hours)
    Returns a new instance with the specified number of hours taken away.
    Hours.minus(Hours hours)
    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 Hours
    Hours.parseHours(String periodStr)
    Creates a new Hours by parsing a string in the ISO8601 format 'PTnH'.
    Hours.plus(int hours)
    Returns a new instance with the specified number of hours added.
    Hours.plus(Hours hours)
    Returns a new instance with the specified number of hours added.
    static Hours
    Creates a new Hours representing the number of complete standard length hours in the specified period.
    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.
    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.
    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 Hours
    Modifier and Type
    Method
    Description
    boolean
    Hours.isGreaterThan(Hours other)
    Is this hours instance greater than the specified number of hours.
    boolean
    Hours.isLessThan(Hours other)
    Is this hours instance less than the specified number of hours.
    Hours.minus(Hours hours)
    Returns a new instance with the specified number of hours taken away.
    Hours.plus(Hours hours)
    Returns a new instance with the specified number of hours added.