public class TimeDatumDependentDuration
extends DatumDependentDuration
TimeDatumDuration represents a time period which results from an arithmetic operation between a TimeDuration object and a DatumDuration object
| Constructor and description |
|---|
TimeDatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)Creates a mixed time and datum-dependent duration. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public From |
getFrom()Returns a helper for computing dates relative to now. |
|
public DatumDependentDuration |
minus(Duration rhs)Subtracts a fixed duration. |
|
public DatumDependentDuration |
minus(DatumDependentDuration rhs)Subtracts a datum-dependent duration. |
|
public DatumDependentDuration |
plus(Duration rhs)Adds a fixed duration. |
|
public DatumDependentDuration |
plus(DatumDependentDuration rhs)Adds a datum-dependent duration. |
| Methods inherited from class | Name |
|---|---|
class DatumDependentDuration |
getAgo, getFrom, getMonths, getYears, minus, minus, plus, plus, plus, plus, toMilliseconds |
class BaseDuration |
compareTo, getAgo, getDays, getFrom, getHours, getMillis, getMinutes, getMonths, getSeconds, getYears, plus, toMilliseconds, toString |
Creates a mixed time and datum-dependent duration.
years - the year componentmonths - the month componentdays - the day componenthours - the hour componentminutes - the minute componentseconds - the second componentmillis - the millisecond componentReturns a helper for computing dates relative to now.
Subtracts a fixed duration.
rhs - the duration to subtractSubtracts a datum-dependent duration.
rhs - the duration to subtractAdds a fixed duration.
rhs - the duration to addAdds a datum-dependent duration.
rhs - the duration to addCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.