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 SecondsSeconds.MAX_VALUEConstant representing the maximum number of seconds that can be stored in this object.static final SecondsSeconds.MIN_VALUEConstant representing the minimum number of seconds that can be stored in this object.static final SecondsSeconds.ONEConstant representing one second.static final SecondsSeconds.THREEConstant representing three seconds.static final SecondsSeconds.TWOConstant representing two seconds.static final SecondsSeconds.ZEROConstant 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 SecondsSeconds.parseSeconds(String periodStr) Creates a newSecondsby 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 SecondsSeconds.seconds(int seconds) Obtains an instance ofSecondsthat may be cached.static SecondsSeconds.secondsBetween(ReadableInstant start, ReadableInstant end) Creates aSecondsrepresenting the number of whole seconds between the two specified datetimes.static SecondsSeconds.secondsBetween(ReadablePartial start, ReadablePartial end) Creates aSecondsrepresenting the number of whole seconds between the two specified partial datetimes.static SecondsSeconds.secondsIn(ReadableInterval interval) Creates aSecondsrepresenting the number of whole seconds in the specified interval.static SecondsSeconds.standardSecondsIn(ReadablePeriod period) Creates a newSecondsrepresenting 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 TypeMethodDescriptionbooleanSeconds.isGreaterThan(Seconds other) Is this seconds instance greater than the specified number of seconds.booleanSeconds.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.