|
Formula 1.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objecthirondelle.formula.function.builtin.DaysSince
public final class DaysSince
dayssince(y,m,d): the number of days since a given date. Accepts fractional days.
| Constructor Summary | |
|---|---|
DaysSince()
|
|
| 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 DaysSince()
| Method Detail |
|---|
public Decimal calculate(Decimal... aArgs)
Check.date(Decimal, Decimal, Decimal).
Example (with Decimals represented by their values, for convenience):
//number of days since 2013-01-01: dayssince(2013,1,1) => 4
This function is unusual, since its return value depends on when you call it.
calculate in interface FunctionaArgs - 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 | ||||||||