Esempio n. 1
0
 *
 * @category  I18N
 * @package   I18N_Arabic
 * @author    Khaled Al-Sham'aa <*****@*****.**>
 * @copyright 2006-2016 Khaled Al-Sham'aa
 *
 * @license   LGPL <http://www.gnu.org/licenses/lgpl.txt>
 * @link      http://www.ar-php.org
 */
error_reporting(E_STRICT);
$time_start = microtime(true);
date_default_timezone_set('UTC');
require '../../Arabic.php';
$Arabic = new I18N_Arabic('Salat');
// Latitude, Longitude, Zone, and Elevation
$Arabic->setLocation(33.52, 36.31, 3, 691);
// Month, Day, and Year
$Arabic->setDate(date('n'), date('j'), date('Y'));
echo "<b>Damascus, Syria</b> " . date('l F j, Y') . "<br /><br />";
// Salat calculation configuration: Egyptian General Authority of Survey
$Arabic->setConf('Shafi', -0.833333, -17.5, -19.5, 'Sunni');
$times = $Arabic->getPrayTime();
echo "<b>Imsak:</b> {$times[8]}<br />";
echo "<b>Fajr:</b> {$times[0]}<br />";
echo "<b>Sunrise:</b> {$times[1]}<br />";
echo "<b>Dhuhr:</b> {$times[2]}<br />";
echo "<b>Asr:</b> {$times[3]}<br />";
echo "<b>Sunset:</b> {$times[6]}<br />";
echo "<b>Maghrib:</b> {$times[4]}<br />";
echo "<b>Isha:</b> {$times[5]}<br />";
echo "<b>Midnight:</b> {$times[7]}<br /><br />";