| org.joda.time.field.ImpreciseDateTimeField org.joda.time.chrono.BasicWeekyearDateTimeField
BasicWeekyearDateTimeField | final class BasicWeekyearDateTimeField extends ImpreciseDateTimeField (Code) | | Provides time calculations for the week of the weekyear component of time.
author: Guy Allard author: Stephen Colebourne author: Brian S O'Neill since: 1.1, refactored from GJWeekyearDateTimeField |
BasicWeekyearDateTimeField | BasicWeekyearDateTimeField(BasicChronology chronology)(Code) | | Restricted constructor
|
add | public long add(long instant, int years)(Code) | | Add the specified years to the specified time instant.
See Also: org.joda.time.DateTimeField.add Parameters: instant - the time instant in millis to update. Parameters: years - the years to add (can be negative). the updated time instant. |
add | public long add(long instant, long value)(Code) | | |
addWrapField | public long addWrapField(long instant, int years)(Code) | | Add to the year component of the specified time instant
wrapping around within that component if necessary.
See Also: org.joda.time.DateTimeField.addWrapField Parameters: instant - the time instant in millis to update. Parameters: years - the years to add (can be negative). the updated time instant. |
get | public int get(long instant)(Code) | | Get the Year of a week based year component of the specified time instant.
See Also: org.joda.time.DateTimeField.get Parameters: instant - the time instant in millis to query. the year extracted from the input. |
getDifferenceAsLong | public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant)(Code) | | |
getLeapAmount | public int getLeapAmount(long instant)(Code) | | |
getMaximumValue | public int getMaximumValue()(Code) | | |
getMinimumValue | public int getMinimumValue()(Code) | | |
isLeap | public boolean isLeap(long instant)(Code) | | |
isLenient | public boolean isLenient()(Code) | | |
remainder | public long remainder(long instant)(Code) | | |
roundFloor | public long roundFloor(long instant)(Code) | | |
set | public long set(long instant, int year)(Code) | | Set the Year of a week based year component of the specified time instant.
See Also: org.joda.time.DateTimeField.set Parameters: instant - the time instant in millis to update. Parameters: year - the year (-9999,9999) to set the date to. the updated DateTime. throws: IllegalArgumentException - if year is invalid. |
|
|