BadiDate class

A Badi Date

Constructors

BadiDate({required int day, int month = 0, required int year, bool ayyamIHa = false, double? latitude, double? longitude, double? altitude})
Badi date for now only for the years up to LAST_YEAR_SUPPORTED Dates before the year 172 are calculated according to the Baha'i Calendar used in western countries. parameters: day int in range 1-19 month int in range 0-19 year int longitude and latitude double for sunset calculation ayyamIHa bool For Ayyam'i'Ha set month to 0 or leave it empty and set ayyamIHa to true

Properties

altitude double?
altitude in meters
final
day int
final
dayOfYear int
the day of the year with Naw Ruz = 1
no setter
endDateTime DateTime
End DateTime
no setter
hashCode int
The hash code for this object.
no setteroverride
holyDay BahaiHolyDayEnum?
If the BadiDate is a Baha'i Holy day the Holy date else null
no setter
isAyyamIHa bool
is the date an Ayyam'i'Ha day
no setter
isFeastDay bool
is the date a feast date
no setter
isPeriodOfFast bool
Is the date in the period of fast
no setter
kullIShay int
Kull'i'shay = 19 Vahids = 361 years
no setter
lastAyyamIHaDayOfYear BadiDate
no setter
latitude double?
latitude value of degree coordinates for sunset calculation in the range -90,90
final
longitude double?
longitude value of degree coordinates for sunset calculation in the range -180,180
final
month int
The month number with Ayyam'i'Ha = 0 and Baha = 1, ... Ala = 19
final
nawRuzDate DateTime
no setter
nextHolyDate BadiDate
The BadiDate of the next Holy day
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDateTime DateTime
Start DateTime
no setter
vahid int
Vahid = 19 years
no setter
year int
The full year of the Badi Calendar with 2020 AC = 177 BE
final
yearInVahid int
The year in the Vahid. A value in the range from 1-19
no setter

Methods

getNextFeast() BadiDate
The BadiDate of the next feast
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.
override

Static Methods

fromDate(DateTime gregorianDate, {double? longitude, double? latitude, double? altitude}) BadiDate
BadiDate from a DateTime object Optional parameter double longitude, latitude, altitude for the sunset time
getDayOfNawRuz(int year) int