hirondelle.formula.function.builtin
Class ModifiedJulianDate
Object
hirondelle.formula.function.builtin.ModifiedJulianDate
- All Implemented Interfaces:
- Function
public final class ModifiedJulianDate
- extends Object
- implements Function
mjd(year, month, day): the Modified 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.
Since the origin of the Julian Date is in the distant past, it takes on large values
for modern dates. The Modified Julian Date merely changes day 0, in order to
result in smaller values for modern dates.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifiedJulianDate
public ModifiedJulianDate()
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.
Copyright Hirondelle Systems. Published January 31, 2013