Java org.joda.time Weeks fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time Weeks fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time Weeks.

The text is from its open source code.

Field

WeeksZERO
Constant representing zero weeks.
WeeksONE
Constant representing one week.

Constructor

Weeks(int weeks)
Creates a new instance representing a number of weeks.

Method

intgetWeeks()
Gets the number of weeks that this period represents.
WeeksparseWeeks(String periodStr)
Creates a new Weeks by parsing a string in the ISO8601 format 'PnW'.
WeeksweeksBetween(ReadableInstant start, ReadableInstant end)
Creates a Weeks representing the number of whole weeks between the two specified datetimes.
WeeksweeksBetween(ReadablePartial start, ReadablePartial end)
Creates a Weeks representing the number of whole weeks between the two specified partial datetimes.
WeeksweeksIn(ReadableInterval interval)
Creates a Weeks representing the number of whole weeks in the specified interval.