|
Formula 1.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecthirondelle.formula.function.builtin.DaysUntil
public final class DaysUntil
daysuntil(y,m,d): the number of days until a given date. Accepts fractional days.
Constructor Summary | |
---|---|
DaysUntil()
|
Method Summary | |
---|---|
Decimal |
calculate(Decimal... aArgs)
Takes 3 arguments, consisting of a year-month-day triplet. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DaysUntil()
Method Detail |
---|
public Decimal calculate(Decimal... aArgs)
Check.date(Decimal, Decimal, Decimal)
.
Example (with Decimals represented by their values, for convenience):
//number of days until 2013-01-31: daysuntil(2013,1,31) => 4
This function is unusual, since its return value depends on when you call it.
calculate
in interface Function
aArgs
- 0 or more arguments to the function.
|
Formula 1.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |