Formula 1.0.0

hirondelle.formula.function.builtin
Class DaysBetween

Object
  extended by hirondelle.formula.function.builtin.DaysBetween
All Implemented Interfaces:
Function

public final class DaysBetween
extends Object
implements Function

daysbetween(y1,m1,d1, y2,m2,d2): the number of days between two calendar dates. Accepts fractional days.


Constructor Summary
DaysBetween()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Takes 6 arguments, consisting of a pair of year-month-day triplets.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaysBetween

public DaysBetween()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Takes 6 arguments, consisting of a pair of year-month-day triplets. Each triplet satisfies Check.date(Decimal, Decimal, Decimal).

Example (with Decimals represented by their values, for convenience):

daysbetween(1991, 7, 11, 2018, 11, 26) => 10,000

Specified by:
calculate in interface Function
Parameters:
aArgs - 0 or more arguments to the function.

Formula 1.0.0

Copyright Hirondelle Systems. Published January 31, 2013