public class TimeDatumDependentDuration
extends DatumDependentDuration
The result of mixing a TimeDuration with a DatumDependentDuration.
| Constructor and description |
|---|
TimeDatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)Creates a mixed duration from the given calendar and time fields. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public DatumDependentDuration |
minus(Duration rhs)Keeps this duration's years and months and subtracts rhs's day
and time fields, returning a TimeDatumDependentDuration. |
|
public DatumDependentDuration |
minus(DatumDependentDuration rhs)Subtracts every calendar and time field of rhs, returning a
TimeDatumDependentDuration. |
|
public DatumDependentDuration |
plus(Duration rhs)Keeps this duration's years and months and adds rhs's day and
time fields, returning a TimeDatumDependentDuration. |
|
public DatumDependentDuration |
plus(DatumDependentDuration rhs)Adds every calendar and time field of rhs, returning a
TimeDatumDependentDuration. |
| Methods inherited from class | Name |
|---|---|
class DatumDependentDuration |
minus, minus, plus, plus, plus, plus |
class BaseDuration |
compareTo, getAgo, getDays, getFrom, getHours, getMillis, getMinutes, getMonths, getSeconds, getYears, plus, toMilliseconds, toString |
Creates a mixed duration from the given calendar and time fields.
Keeps this duration's years and months and subtracts rhs's day
and time fields, returning a TimeDatumDependentDuration.
Subtracts every calendar and time field of rhs, returning a
TimeDatumDependentDuration.
Keeps this duration's years and months and adds rhs's day and
time fields, returning a TimeDatumDependentDuration.
Adds every calendar and time field of rhs, returning a
TimeDatumDependentDuration.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.