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