Julian class

Encapsulates a Julian date.

Constructors

Julian(double value)
Initialize the Julian date object.
const
Julian.fromDateTime(DateTime utc)
Create a Julian date object from a DateTime object. The time contained in the DateTime object is assumed to be UTC.
factory
Julian.fromYearDoy(int year, double doy)
Creates a Julian date from year and day-of-year.
factory

Properties

gmst Angle
Calculate Greenwich Mean Sidereal Time for the Julian date.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
The Julian date.
final

Methods

addDays(double day) Julian
Adds days.
addHours(double hours) Julian
Adds hours.
addMinutes(double min) Julian
Adds minutes.
addSeconds(double sec) Julian
Adds seconds.
fromJan0_12h_1900() double
Dec 31.5 1899 = Dec 31 1899 12h UTC
fromJan1_00h_1900() double
Jan 1.0 1900 = Jan 1 1900 00h UTC
fromJan1_12h_1900() double
Jan 1.5 1900 = Jan 1 1900 12h UTC
fromJan1_12h_2000() double
Jan 1.5 2000 = Jan 1 2000 12h UTC
lmst(Angle longitude) Angle
Calculate Local Mean Sidereal Time for this Julian date at the given longitude.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
Converts from Julian to DateTime.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited