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 SecondsModifier and TypeFieldDescriptionstatic 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 SecondsModifier and TypeMethodDescriptionSeconds.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.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 newSeconds
by parsing a string in the ISO8601 format 'PTnS'.Seconds.plus
(int seconds) Returns a new instance with the specified number of seconds added.Returns a new instance with the specified number of seconds added.static Seconds
Seconds.seconds
(int seconds) Obtains an instance ofSeconds
that may be cached.static Seconds
Seconds.secondsBetween
(ReadableInstant start, ReadableInstant end) Creates aSeconds
representing the number of whole seconds between the two specified datetimes.static Seconds
Seconds.secondsBetween
(ReadablePartial start, ReadablePartial end) Creates aSeconds
representing the number of whole seconds between the two specified partial datetimes.static Seconds
Seconds.secondsIn
(ReadableInterval interval) Creates aSeconds
representing the number of whole seconds in the specified interval.static Seconds
Seconds.standardSecondsIn
(ReadablePeriod period) Creates a newSeconds
representing the number of complete standard length seconds in the specified period.Days.toStandardSeconds()
Converts this period in days to a period in seconds assuming a 24 hour day, 60 minute hour and 60 second minute.Duration.toStandardSeconds()
Converts this duration to a period in seconds assuming that there are the standard number of milliseconds in a second.Hours.toStandardSeconds()
Converts this period in hours to a period in seconds assuming a 60 minute hour and 60 second minute.Minutes.toStandardSeconds()
Converts this period in minutes to a period in seconds assuming a 60 second minute.Period.toStandardSeconds()
Converts this period to a period in seconds assuming a 7 day week, 24 hour day, 60 minute hour and 60 second minute.Weeks.toStandardSeconds()
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 SecondsModifier and TypeMethodDescriptionboolean
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.Returns a new instance with the specified number of seconds taken away.Returns a new instance with the specified number of seconds added.