How to calculate 5 times prayer a day timings
Often wondered to link timings with my app so that people can get benefit
We can send sms to our friends for updates
Now you can too and you can send sms to a group of friends and family members
Use this free library its available in java, c# and other languages
Example as below, its a few lines of code to get salah / namaz / prayer time 5 times a day of whole year
send me email to get java or c# library at azrawasia@hotmail.com
or you can download it from
Calculation is based on longitude and lattitude. / Location / Area / Earth / Sun based
Internet is not required.
Click on screen label to share with SMS / Email
/////////////////////////////////////////////////////////
PrayTime p = new PrayTime();
// enter your location here
double lo = 24.917244;
double la = 67.033299;
int y = 0, m = 0, d = 0, tz = 0;
// today's date
DateTime cc = DateTime.Now;
y = cc.Year;
m = cc.Month;
d = cc.Day;
tz = TimeZoneInfo.Local.GetUtcOffset(DateTime.UtcNow).Hours;
String[] timings;
p.setCalcMethod(1); // hanafi = 1
p.setAsrMethod(1); // hanafi = 1
timings = p.getDatePrayerTimes(y, m, d, lo, la, tz);
now we got result in timings[0] is fajr start time and timings[1] will be end time.
the rest you will get in the array.
///////////////////////////////////////////////////////
here is the library you can use.
///////////////////////////////////////////////////////////////////
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.TimeZone;
public class PrayTime {
// ---------------------- Global Variables --------------------
private int calcMethod; // caculation method
private int asrJuristic; // Juristic method for Asr
private int dhuhrMinutes; // minutes after mid-day for Dhuhr
private int adjustHighLats; // adjusting method for higher latitudes
private int timeFormat; // time format
private double lat; // latitude
private double lng; // longitude
private double timeZone; // time-zone
private double JDate; // Julian date
// ------------------------------------------------------------
// Calculation Methods
public int Jafari; // Ithna Ashari
public int Karachi; // University of Islamic Sciences, Karachi
public int ISNA; // Islamic Society of North America (ISNA)
public int MWL; // Muslim World League (MWL)
public int Makkah; // Umm al-Qura, Makkah
public int Egypt; // Egyptian General Authority of Survey
public int Custom; // Custom Setting
public int Tehran; // Institute of Geophysics, University of Tehran
// Juristic Methods
public int Shafii; // Shafii (standard)
public int Hanafi; // Hanafi
// Adjusting Methods for Higher Latitudes
public int None; // No adjustment
public int MidNight; // middle of night
public int OneSeventh; // 1/7th of night
public int AngleBased; // angle/60th of night
// Time Formats
public int Time24; // 24-hour format
public int Time12; // 12-hour format
public int Time12NS; // 12-hour format with no suffix
public int Floating; // floating point number
// Time Names
private ArrayList timeNames;
private String InvalidTime; // The string used for invalid times
// --------------------- Technical Settings --------------------
private int numIterations; // number of iterations needed to compute times
// ------------------- Calc Method Parameters --------------------
private HashMap methodParams;
private double[] prayerTimesCurrent;
private int[] offsets;
public PrayTime() {
// Initialize vars
///////////////////////////////////////////////////////////////////////////////////////////////////////
or you can download it from
search and share this link free
https://play.google.com/store/apps/details?id=studio.solutions.com
免費玩Learn Prayer Calculations Mslm APP玩免費
免費玩Learn Prayer Calculations Mslm App
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 5 App下載 | 免費 | 1970-01-01 | 2015-01-14 |