Uses of Class
org.joda.time.Seconds

Packages that use Seconds
Package
Description
Provides support for dates, times, time zones, durations, intervals, and partials.
  • Uses of Seconds in org.joda.time

    Fields in org.joda.time declared as Seconds
    Modifier and Type
    Field
    Description
    static final Seconds
    Seconds.MAX_VALUE
    Constant representing the maximum number of seconds that can be stored in this object.
    static final Seconds
    Seconds.MIN_VALUE
    Constant representing the minimum number of seconds that can be stored in this object.
    static final Seconds
    Seconds.ONE
    Constant representing one second.
    static final Seconds
    Seconds.THREE
    Constant representing three seconds.
    static final Seconds
    Seconds.TWO
    Constant representing two seconds.
    static final Seconds
    Seconds.ZERO
    Constant representing zero seconds.
    Methods in org.joda.time that return Seconds
    Modifier and Type
    Method
    Description
    Seconds.dividedBy(int divisor)
    Returns a new instance with the seconds divided by the specified divisor.
    Seconds.minus(int seconds)
    Returns a new instance with the specified number of seconds taken away.
    Seconds.minus(Seconds seconds)
    Returns a new instance with the specified number of seconds taken away.
    Seconds.multipliedBy(int scalar)
    Returns a new instance with the seconds multiplied by the specified scalar.
    Seconds.negated()
    Returns a new instance with the seconds value negated.
    static Seconds
    Seconds.parseSeconds(String periodStr)
    Creates a new Seconds by parsing a string in the ISO8601 format 'PTnS'.
    Seconds.plus(int seconds)
    Returns a new instance with the specified number of seconds added.
    Seconds.plus(Seconds seconds)
    Returns a new instance with the specified number of seconds added.
    static Seconds
    Seconds.seconds(int seconds)
    Obtains an instance of Seconds that may be cached.
    static Seconds
    Creates a Seconds representing the number of whole seconds between the two specified datetimes.
    static Seconds
    Creates a Seconds representing the number of whole seconds between the two specified partial datetimes.
    static Seconds
    Seconds.secondsIn(ReadableInterval interval)
    Creates a Seconds representing the number of whole seconds in the specified interval.
    static Seconds
    Creates a new Seconds representing the number of complete standard length seconds in the specified period.
    Converts this period in days to a period in seconds assuming a 24 hour day, 60 minute hour and 60 second minute.
    Converts this duration to a period in seconds assuming that there are the standard number of milliseconds in a second.
    Converts this period in hours to a period in seconds assuming a 60 minute hour and 60 second minute.
    Converts this period in minutes to a period in seconds assuming a 60 second minute.
    Converts this period to a period in seconds assuming a 7 day week, 24 hour day, 60 minute hour and 60 second minute.
    Converts this period in weeks to a period in seconds assuming a 7 day week, 24 hour day, 60 minute hour and 60 second minute.
    Methods in org.joda.time with parameters of type Seconds
    Modifier and Type
    Method
    Description
    boolean
    Seconds.isGreaterThan(Seconds other)
    Is this seconds instance greater than the specified number of seconds.
    boolean
    Seconds.isLessThan(Seconds other)
    Is this seconds instance less than the specified number of seconds.
    Seconds.minus(Seconds seconds)
    Returns a new instance with the specified number of seconds taken away.
    Seconds.plus(Seconds seconds)
    Returns a new instance with the specified number of seconds added.