Uses of Class
org.joda.time.Weeks
Packages that use Weeks
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
-
Uses of Weeks in org.joda.time
Fields in org.joda.time declared as WeeksModifier and TypeFieldDescriptionstatic final Weeks
Weeks.MAX_VALUE
Constant representing the maximum number of weeks that can be stored in this object.static final Weeks
Weeks.MIN_VALUE
Constant representing the minimum number of weeks that can be stored in this object.static final Weeks
Weeks.ONE
Constant representing one week.static final Weeks
Weeks.THREE
Constant representing three weeks.static final Weeks
Weeks.TWO
Constant representing two weeks.static final Weeks
Weeks.ZERO
Constant representing zero weeks.Methods in org.joda.time that return WeeksModifier and TypeMethodDescriptionWeeks.dividedBy
(int divisor) Returns a new instance with the weeks divided by the specified divisor.Weeks.minus
(int weeks) Returns a new instance with the specified number of weeks taken away.Returns a new instance with the specified number of weeks taken away.Weeks.multipliedBy
(int scalar) Returns a new instance with the weeks multiplied by the specified scalar.Weeks.negated()
Returns a new instance with the weeks value negated.static Weeks
Weeks.parseWeeks
(String periodStr) Creates a newWeeks
by parsing a string in the ISO8601 format 'PnW'.Weeks.plus
(int weeks) Returns a new instance with the specified number of weeks added.Returns a new instance with the specified number of weeks added.static Weeks
Weeks.standardWeeksIn
(ReadablePeriod period) Creates a newWeeks
representing the number of complete standard length weeks in the specified period.Days.toStandardWeeks()
Converts this period in days to a period in weeks assuming a 7 day week.Hours.toStandardWeeks()
Converts this period in hours to a period in weeks assuming a 7 day week and 24 hour day.Minutes.toStandardWeeks()
Converts this period in minutes to a period in weeks assuming a 7 days week, 24 hour day and 60 minute hour.Period.toStandardWeeks()
Converts this period to a period in weeks assuming a 7 day week, 24 hour day, 60 minute hour and 60 second minute.Seconds.toStandardWeeks()
Converts this period in seconds to a period in weeks assuming a 7 day week, 24 hour day, 60 minute hour and 60 second minute.static Weeks
Weeks.weeks
(int weeks) Obtains an instance ofWeeks
that may be cached.static Weeks
Weeks.weeksBetween
(ReadableInstant start, ReadableInstant end) Creates aWeeks
representing the number of whole weeks between the two specified datetimes.static Weeks
Weeks.weeksBetween
(ReadablePartial start, ReadablePartial end) Creates aWeeks
representing the number of whole weeks between the two specified partial datetimes.static Weeks
Weeks.weeksIn
(ReadableInterval interval) Creates aWeeks
representing the number of whole weeks in the specified interval.Methods in org.joda.time with parameters of type WeeksModifier and TypeMethodDescriptionboolean
Weeks.isGreaterThan
(Weeks other) Is this weeks instance greater than the specified number of weeks.boolean
Weeks.isLessThan
(Weeks other) Is this weeks instance less than the specified number of weeks.Returns a new instance with the specified number of weeks taken away.Returns a new instance with the specified number of weeks added.