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

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

Introduction

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

The text is from its open source code.

Field

DaysONE
Constant representing one day.
DaysTWO
Constant representing two days.
DaysTHREE
Constant representing three days.
DaysFOUR
Constant representing four days.
DaysFIVE
Constant representing five days.
DaysSIX
Constant representing six days.
DaysSEVEN
Constant representing seven days.

Constructor

Days(int days)
Creates a new instance representing a number of days.

Method

intcompareTo(BaseSingleFieldPeriod other)
Compares this period to another object of the same class.
DaysdaysBetween(ReadableInstant start, ReadableInstant end)
Creates a Days representing the number of whole days between the two specified datetimes.
DaysdaysBetween(ReadablePartial start, ReadablePartial end)
Creates a Days representing the number of whole days between the two specified partial datetimes.
DaysdaysIn(ReadableInterval interval)
Creates a Days representing the number of whole days in the specified interval.
intgetDays()
Gets the number of days that this period represents.
booleanisGreaterThan(Days other)
Is this days instance greater than the specified number of days.
DaysparseDays(String periodStr)
Creates a new Days by parsing a string in the ISO8601 format 'PnD'.
DaysstandardDaysIn(ReadablePeriod period)
Creates a new Days representing the number of complete standard length days in the specified period.
HourstoStandardHours()
Converts this period in days to a period in hours assuming a 24 hour day.
MinutestoStandardMinutes()
Converts this period in days to a period in minutes assuming a 24 hour day and 60 minute hour.
WeekstoStandardWeeks()
Converts this period in days to a period in weeks assuming a 7 day week.