Julian class

Encapsulates a Julian date.

Constructors

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.fromYearAndDoy(int year, double doy)
Create a Julian date object given a year and day-of-year.
factory

Properties

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.
diffrence(Julian other) Duration
Calculates the time difference between two Julian dates.
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
Returns a UTC DateTime object that corresponds to this Julian date.
toGmst() double
Calculate Greenwich Mean Sidereal Time for the Julian date.
toLmst(double longitude) double
Calculate Local Mean Sidereal Time for this Julian date at the given longitude.
toString() String
A string representation of this object.
inherited

Operators

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