PrayTime Class Reference
| Inherits from | NSObject |
| Declared in | PrayTime.h |
Overview
The class for calculating Muslim Prayer Times.
Depending on how you configure your project you may need to import “PrayTime.h”.
Here is an example for getting prayer times for a given longitude and latitude:
PrayTime *prayerTime = [[PrayTime alloc] initWithJuristic:JuristicMethodShafii
andCalculation:CalculationMethodMWL];
NSMutableArray *prayerTimes = [prayerTime prayerTimesDate:[NSDate date]
latitude:3.1667
longitude:101.7000
andTimezone:[prayerTime getTimeZone]];
Tasks
-
– initWithJuristic:andCalculation: -
– getTimeZone -
– getDatePrayerTimesForYear:month:day:latitude:longitude:andtimeZone: -
– getPrayerTimesForDate:withLatitude:longitude:andTimeZone: -
– prayerTimesDate:latitude:longitude:andTimezone: -
– prayerTimesFromLocation: -
– prayerTimesFromLocation:forDate: -
– prayerTimesFromLocation:forDate:timezone: -
– setCalculationMethod: -
– setJuristicMethod: -
– setCustomParams: -
– setFajrAngle: -
– setMaghribAngle: -
– setIshaAngle: -
– setDhuhrMinutes: -
– setMaghribMinutes: -
– setIshaMinutes: -
– setHighLatitudsMethod: -
– setTimeFormat:
Instance Methods
getDatePrayerTimesForYear:month:day:latitude:longitude:andtimeZone:
Returns prayer times for the provided values.
- (NSMutableArray *)getDatePrayerTimesForYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day latitude:(double)latitude longitude:(double)longitude andtimeZone:(double)tZoneParameters
- year
Year.
- month
Month.
- day
Day.
- latitude
The north-south position of a point on the Earth’s surface.
- longitude
Angle which ranges from 0° at the Equator to 90° (North or South) at the poles.
- tZone
Hours difference in GMT.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hgetPrayerTimesForDate:withLatitude:longitude:andTimeZone:
Returns prayer times for the provided values.
- (NSMutableArray *)getPrayerTimesForDate:(NSDateComponents *)date withLatitude:(double)latitude longitude:(double)longitude andTimeZone:(double)tZoneParameters
- date
Components of a date.
- latitude
The north-south position of a point on the Earth’s surface.
- longitude
Angle which ranges from 0° at the Equator to 90° (North or South) at the poles.
- tZone
Hours difference in GMT.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hgetTimeZone
Returns hours difference in GMT.
- (double)getTimeZoneAvailability
Available in 0.1.0 and later.
Declared In
PrayTime.hinitWithJuristic:andCalculation:
Initializes prayer times instance with the provided values.
- (id)initWithJuristic:(JuristicMethod)juristic andCalculation:(CalculationMethod)calculationParameters
- juristic
Juristic method for prayer times in
JuristicMethod.
- calculation
Prayer calculation method in
CalculationMethod.
Return Value
Returns the instance of PrayTime.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hprayerTimesDate:latitude:longitude:andTimezone:
Returns prayer times for the provided values.
- (NSMutableArray *)prayerTimesDate:(NSDate *)date latitude:(double)latitude longitude:(double)longitude andTimezone:(double)timezoneParameters
- date
Date object.
- latitude
The north-south position of a point on the Earth’s surface.
- longitude
Angle which ranges from 0° at the Equator to 90° (North or South) at the poles.
- tZone
Hours difference in GMT.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hprayerTimesFromLocation:
Returns prayer times for the provided location.
- (NSMutableArray *)prayerTimesFromLocation:(CLLocation *)locationParameters
- location
Location object.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hprayerTimesFromLocation:forDate:
Returns prayer times for the provided location and date.
- (NSMutableArray *)prayerTimesFromLocation:(CLLocation *)location forDate:(NSDate *)dateParameters
- location
CLLocationobject.
- date
NSDateobject.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hprayerTimesFromLocation:forDate:timezone:
Returns prayer times for the provided location, date and timezone.
- (NSMutableArray *)prayerTimesFromLocation:(CLLocation *)location forDate:(NSDate *)date timezone:(NSTimeZone *)timezoneParameters
- location
Location object.
- date
Date object.
- timezone
Timezone object.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetCalculationMethod:
Sets prayer calculation method.
- (void)setCalculationMethod:(CalculationMethod)methodParameters
- method
Prayer calculation method in
CalculationMethod.
Return Value
Returns a NSMutableArray object of prayer times.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetCustomParams:
Sets custom values for calculation parameters.
- (void)setCustomParams:(NSMutableArray *)paramsParameters
- params
Parameters in
NSMutableArray.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetDhuhrMinutes:
Sets the minutes after mid-day for calculating Dhuhr.
- (void)setDhuhrMinutes:(double)minutesParameters
- minutes
Minutes after dhuhr.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetFajrAngle:
Sets the angle for calculating Fajr.
- (void)setFajrAngle:(double)angleParameters
- angle
Angle.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetHighLatitudsMethod:
Sets adjusting method for higher latitudes.
- (void)setHighLatitudsMethod:(AdjustMethodHigherLatitude)methodParameters
- method
Adjusting method for higher latitude in
AdjustMethodHigherLatitude.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetIshaAngle:
Sets the angle for calculating Isha.
- (void)setIshaAngle:(double)angleParameters
- angle
Angle.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetIshaMinutes:
Sets the minutes after Maghrib for calculating Isha.
- (void)setIshaMinutes:(double)minutesParameters
- minutes
Minutes after isha.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetJuristicMethod:
Sets the juristic method for Asr.
- (void)setJuristicMethod:(JuristicMethod)methodParameters
- method
Prayer calculation method in
JuristicMethod.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetMaghribAngle:
Sets the angle for calculating Maghrib.
- (void)setMaghribAngle:(double)angleParameters
- angle
Angle.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetMaghribMinutes:
Sets the minutes after Sunset for calculating Maghrib.
- (void)setMaghribMinutes:(double)minutesParameters
- minutes
Minutes after maghrib.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.hsetTimeFormat:
Sets time format.
- (void)setTimeFormat:(TimeFormat)formatParameters
- format
Time format in
TimeFormat.
Availability
Available in 0.1.0 and later.
Declared In
PrayTime.h