| org.joda.time.field.DecoratedDateTimeField org.joda.time.chrono.GJYearOfEraDateTimeField
GJYearOfEraDateTimeField | final class GJYearOfEraDateTimeField extends DecoratedDateTimeField (Code) | | Provides time calculations for the year of era component of time.
author: Brian S O'Neill since: 1.0 |
Method Summary | |
public long | add(long instant, int years) | public long | add(long instant, long years) | public long | addWrapField(long instant, int years) | public int[] | addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int years) | public int | get(long instant) | public int | getDifference(long minuendInstant, long subtrahendInstant) | public long | getDifferenceAsLong(long minuendInstant, long subtrahendInstant) | public int | getMaximumValue() | public int | getMinimumValue() | public long | remainder(long instant) | public long | roundCeiling(long instant) | public long | roundFloor(long instant) | public long | set(long instant, int year) Set the year component of the specified time instant.
Parameters: instant - the time instant in millis to update. Parameters: year - the year (0,292278994) to update the time to. |
add | public long add(long instant, int years)(Code) | | |
add | public long add(long instant, long years)(Code) | | |
addWrapField | public long addWrapField(long instant, int years)(Code) | | |
addWrapField | public int[] addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int years)(Code) | | |
get | public int get(long instant)(Code) | | |
getDifference | public int getDifference(long minuendInstant, long subtrahendInstant)(Code) | | |
getDifferenceAsLong | public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant)(Code) | | |
getMaximumValue | public int getMaximumValue()(Code) | | |
getMinimumValue | public int getMinimumValue()(Code) | | |
remainder | public long remainder(long instant)(Code) | | |
roundCeiling | public long roundCeiling(long instant)(Code) | | |
roundFloor | public long roundFloor(long instant)(Code) | | |
set | public long set(long instant, int year)(Code) | | Set the year component of the specified time instant.
Parameters: instant - the time instant in millis to update. Parameters: year - the year (0,292278994) to update the time to. the updated time instant. throws: IllegalArgumentException - if year is invalid. |
|
|