Formula 1.0.0

hirondelle.formula.function.builtin
Class JulianDate

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

public final class JulianDate
extends Object
implements Function

jd(year, month, day): the Julian Date of a calendar date.

The Julian Date is defined by astronomers as a simple sequential date reckoning. Its primary use is to make it simple to calculate the number of days between two dates in the Gregorian calendar.


Constructor Summary
JulianDate()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Takes 3 parameters for year, month, and day.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JulianDate

public JulianDate()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Takes 3 parameters for year, month, and day. The day may contain a fraction. Uses Check.date(Decimal, Decimal, Decimal).

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