Class JulianDay
A Julian Day class. A Julian Day is a date based on the Julian Day count of time invented by Joseph Scaliger in 1583 for use with astronomical calculations. Do not confuse it with a date in the Julian calendar, which it has very little in common with. The naming is unfortunately close, and comes from history.
Defined in: ilibfulldyn.js.
Constructor Attributes  Constructor Name and Description 

JulianDay(num)

Method Attributes  Method Name and Description 

addDate(offset)
Add an offset to the current date instance.


getDate()
Return the Julian Day expressed as a floating point number.


Return the fractional portion of this Julian Day instance.


getDays()
Return the integral portion of this Julian Day instance.


setDate(num)
Set the date of this Julian Day instance.


setDayFraction(fraction)
Set the fractional part of the Julian Day.


setDays(days)
Set the date of this Julian Day instance.

Class Detail
JulianDay(num)
 Parameters:
 {number} num
 the Julian Day expressed as a floating point number
Method Detail
addDate(offset)
Add an offset to the current date instance. The offset should be expressed in
terms of Julian days. That is, each integral unit represents one day of time, and
fractional part represents a fraction of a regular 24hour day.
 Parameters:
 {number} offset
 an amount to add (or subtract) to the current result instance.
{number}
getDate()
Return the Julian Day expressed as a floating point number.
 Returns:
 {number} the Julian Day as a number
getDayFraction()
Return the fractional portion of this Julian Day instance. This portion
corresponds to the time of day for the instance.
{number}
getDays()
Return the integral portion of this Julian Day instance. This corresponds to
the number of days since the beginning of the epoch.
 Returns:
 {number} the integral portion of this Julian Day
setDate(num)
Set the date of this Julian Day instance.
 Parameters:
 {number} num
 the numeric Julian Day to set into this instance
setDayFraction(fraction)
Set the fractional part of the Julian Day. The fractional part represents
the portion of a fully day. Julian dates start at noon, and proceed until
noon of the next day. That would mean midnight is represented as a fractional
part of 0.5.
 Parameters:
 {number} fraction
 The fractional part of the Julian date
setDays(days)
Set the date of this Julian Day instance.
 Parameters:
 {number} days
 the julian date expressed as a floating point number