Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
Modifier and Type | Field | Description |
---|---|---|
static Days |
Days.FIVE |
Constant representing five days.
|
static Days |
Days.FOUR |
Constant representing four days.
|
static Days |
Days.MAX_VALUE |
Constant representing the maximum number of days that can be stored in this object.
|
static Days |
Days.MIN_VALUE |
Constant representing the minimum number of days that can be stored in this object.
|
static Days |
Days.ONE |
Constant representing one day.
|
static Days |
Days.SEVEN |
Constant representing seven days.
|
static Days |
Days.SIX |
Constant representing six days.
|
static Days |
Days.THREE |
Constant representing three days.
|
static Days |
Days.TWO |
Constant representing two days.
|
static Days |
Days.ZERO |
Constant representing zero days.
|
Modifier and Type | Method | Description |
---|---|---|
static Days |
Days.days(int days) |
Obtains an instance of
Days that may be cached. |
static Days |
Days.daysBetween(ReadableInstant start,
ReadableInstant end) |
Creates a
Days representing the number of whole days
between the two specified datetimes. |
static Days |
Days.daysBetween(ReadablePartial start,
ReadablePartial end) |
Creates a
Days representing the number of whole days
between the two specified partial datetimes. |
static Days |
Days.daysIn(ReadableInterval interval) |
Creates a
Days representing the number of whole days
in the specified interval. |
Days |
Days.dividedBy(int divisor) |
Returns a new instance with the days divided by the specified divisor.
|
Days |
Days.minus(int days) |
Returns a new instance with the specified number of days taken away.
|
Days |
Days.minus(Days days) |
Returns a new instance with the specified number of days taken away.
|
Days |
Days.multipliedBy(int scalar) |
Returns a new instance with the days multiplied by the specified scalar.
|
Days |
Days.negated() |
Returns a new instance with the days value negated.
|
static Days |
Days.parseDays(java.lang.String periodStr) |
Creates a new
Days by parsing a string in the ISO8601 format 'PnD'. |
Days |
Days.plus(int days) |
Returns a new instance with the specified number of days added.
|
Days |
Days.plus(Days days) |
Returns a new instance with the specified number of days added.
|
static Days |
Days.standardDaysIn(ReadablePeriod period) |
Creates a new
Days representing the number of complete
standard length days in the specified period. |
Days |
Duration.toStandardDays() |
Converts this duration to a period in days assuming that there are the
standard number of milliseconds in a day.
|
Days |
Hours.toStandardDays() |
Converts this period in hours to a period in days assuming a
24 hour day.
|
Days |
Minutes.toStandardDays() |
Converts this period in minutes to a period in days assuming a
24 hour day and 60 minute hour.
|
Days |
Period.toStandardDays() |
Converts this period to a period in days assuming a
7 day week, 24 hour day, 60 minute hour and 60 second minute.
|
Days |
Seconds.toStandardDays() |
Converts this period in seconds to a period in days assuming a
24 hour day, 60 minute hour and 60 second minute.
|
Days |
Weeks.toStandardDays() |
Converts this period in weeks to a period in days assuming a
7 day week.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
Days.isGreaterThan(Days other) |
Is this days instance greater than the specified number of days.
|
boolean |
Days.isLessThan(Days other) |
Is this days instance less than the specified number of days.
|
Days |
Days.minus(Days days) |
Returns a new instance with the specified number of days taken away.
|
Days |
Days.plus(Days days) |
Returns a new instance with the specified number of days added.
|
Copyright © 2002–2018 Joda.org. All rights reserved.