Syntax
YEARFRAC(startDate, endDate, basis)
The basis optionally specifies the behaviour of YEARFRAC as follows:
| Value | Days per Month | Days per Year |
|---|---|---|
| 0 (default) | 30 | 360 |
| 1 | actual | actual |
| 2 | actual | 360 |
| 3 | actual | 365 |
| 4 | 30 | 360 |
| Modifier and Type | Field and Description |
|---|---|
| public static final FreeRefFunction |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(ValueEval[]
the pre-evaluated arguments for this function. args is never args, OperationEvaluationContext null,
nor are any of its elements.primarily used to identify the source cell containing the formula being evaluated.
may also be used to dynamically create reference evals. ec)Implements org.
|
| private static double | |
| private static int |
| instance | back to summary |
|---|---|
| public static final FreeRefFunction instance | |
| YearFrac | back to summary |
|---|---|
| private YearFrac() | |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) Implements org.
| |
| evaluateDateArg | back to summary |
|---|---|
| private static double evaluateDateArg(ValueEval arg, int srcCellRow, int srcCellCol) throws EvaluationException | |
| evaluateIntArg | back to summary |
|---|---|
| private static int evaluateIntArg(ValueEval arg, int srcCellRow, int srcCellCol) throws EvaluationException | |