HinduCalculationEngine class
Main calculation engine for Hindu calendar
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculateHinduDate(
int year, int month, int day, {double latitude = 0.0, double longitude = 0.0}) → Map< String, dynamic> - Calculate Hindu calendar data for a given Gregorian date
-
getHinduMonth(
double sunLong) → int - Calculate approximate Hindu month from sun's longitude
-
getKarana(
double tithi) → int - Calculate karana from tithi
-
getMoonLongitude(
double julianDay) → double - Calculate moon's longitude for a given Julian day
-
getMuhurta(
DateTime dateTime) → Map< String, dynamic> - Calculate current Muhurta (48-minute periods) for a given time
-
getNakshatra(
double moonLong) → int - Calculate nakshatra from moon's longitude
-
getSunLongitude(
double julianDay) → double - Calculate sun's longitude for a given Julian day
-
getTithi(
double sunLong, double moonLong) → double - Calculate tithi (lunar day) from sun and moon longitudes
-
getWeekday(
double julianDay) → int - Get weekday from Julian day
-
getYoga(
double sunLong, double moonLong) → int - Calculate yoga from sun and moon longitudes
-
gregorianToJulian(
int year, int month, int day) → double - Convert Gregorian date to Julian Day Number
-
hinduToGregorian(
int hinduYear, int hinduMonth, int hinduDay, bool isShukla) → DateTime - Convert Hindu date to approximate Gregorian date
Constants
- astronomicalUnit → const double
- earthRadius → const double
- synodicMonth → const double
- tropicalYear → const double