Religion::Islam::PrayerTimes v.1.02

Advertisement
Advertisement

Religion::Islam::PrayerTimes is a Perl module that calculates Muslim Prayers Times and Sunrise. SYNOPSIS use Religion::Islam::PrayerTimes, #create new object with default options my $prayer = Religion::Islam::PrayerTimes->new(), #Juristic Methods: # 1 = Standard (Imams Shafii, Hanbali, and Maliki), #2 = Hanafi #The difference is in the Aser time only $prayer->JuristicMethod(1), # Calculation Method #1: Umm Al-Qura Committee #2: Muslim World League #3: Egyptian General Authority of Survey #4: University Of Islamic Sciences, Karachi #5: ISNA, Islamic Society of North America $prayer->CalculationMethod(3), # Q. What is daylight saving? Ans. Many countries try to adopt their work time by subtracting # from their clocks one hour in the Fall and Winter seasons. $prayer->DaylightSaving(1), #print "DaylightSaving: ". $prayer->DaylightSaving() ."n", # set the location to clculate prayer times for. # for Cairo, Egypt: # http://heavens-above.com/countries.asp $prayer->PrayerLocation( Latitude => 30.050, Longitude => 31.250, Altitude => 24, TimeZone => 2 ), my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time), $mon++, $year += 1900, #Adjust the Gregorian Dates by making sure that the month lengths #are correct if not so take the extra days to next month or year. my ($yg0, $mg0, $dg0) = $prayer->GDateAjust($year, $mon, $mday), # Now calculate the prayer times. Times returns in hours decimal format #%result = $prayer->PrayerTimes($year, $mon, $mday), %result = $prayer->PrayerTimes($yg0, $mg0, $dg0), #print "Fajr: " . $result{Fajr} . "n", #print "Sunrise: " . $result{Sunrise} . "n", #print "Zohar: " . $result{Zohar} . "n", #print "Aser: " . $result{Aser} . "n", #print "Maghrib: " . $result{Maghrib} . "n", #print "Isha: " . $result{Isha} . "n", #print "Fajir Rabita: " . $result{FajirRabita} . "n", #Fajer using exact Rabita method for places >48 #print "Isha Rabita: " . $result{IshaRabita} . "n", #Ash using exact Rabita method for places >48 #print "Eid Prayer Time: " . $result{Eid} . "n", #Eid Prayer Time #print "n", # set time mode for 12 or 24 hour for FormatTime function. $prayer->TimeMode(1), #print time formated #print "TimeMode: " . $prayer->TimeMode() ."n", my ($h, $m, $ap), ($h, $m, $ap) = $prayer->FormatTime($result{Fajr}), print "Fajr: $h:$m $apn", ($h, $m, $ap) = $prayer->FormatTime($result{Sunrise}), print "Sunrise: $h:$m $apn", ($h, $m, $ap) = $prayer->FormatTime($result{Zohar}), print "Zohar: $h:$m $apn", ($h, $m, $ap) = $prayer->FormatTime($result{Aser}), print "Aser: $h:$m $apn", ($h, $m, $ap) = $prayer->FormatTime($result{Maghrib}), print "Maghrib: $h:$m $apn", ($h, $m, $ap) = $prayer->FormatTime($result{Isha}), print "Isha: $h:$m $apn", #($h, $m, $ap) = $prayer->FormatTime($result{FajirRabita}), #print "Fajir Rabita: $h:$m $apn", #Fajer using exact Rabita method for places >48 #($h, $m, $ap) = $prayer->FormatTime($result{IshaRabita}), #print "Isha Rabita: $h:$m $apn", #Ash using exact Rabita method for places >48 #($h, $m, $ap) = $prayer->FormatTime($result{Eid}), #print "Eid Prayer Time: $h:$m $apn", #Eid Prayer Time

Religion::Islam::PrayerTimes is a Perl module ...

 
  • Perl Artistic
  • 15 Kb
  • 321
 
 

Review Religion::Islam::PrayerTimes

  • captcha
 

Other software of Ahmed Amin Elsheshtawy
  • Boardawy Full Forum Software and Bulletin Board System  v.2009Boardawy Full Forum Software and Bulletin Board System 2009 comes as a discussion board system that is created using Perl and SQL technologies.Completely rewritten. Now 400% faster with chat boards, RSS, Smileys, HTML Visual Editor, BBCode Editor, ...
  • Religion::Islam::Qibla  v.1.02Religion::Islam::Qibla is a Perl module that calculates the Muslim Qiblah Direction, Great Circle Distance, and Great Circle Direction. SYNOPSIS use Religion::Islam::Qibla, #create new object with default options, Destination point is Kabah ...
  • Religion::Islam::Quran  v.1.0Religion::Islam::Quran - Holy Quran book searchable database multi-lingual in both text and unicode formats. SYNOPSIS #--------------------------------------------------------------- use Religion::Islam::Quran, ...

New Components & Libraries software
  • ODBC Driver for xBase  v.1.3Devart ODBC Driver for xBase provides high-performance and feature-rich connectivity solution for ODBC-based applications to access FoxPro, dBase, and other databases in DBF file formats.
  • DotConnect for SugarCRM  v.1.7dotConnect for SugarCRM is an ADO.NET provider for working with SugarCRM data through the standard ADO.NET or Entity Framework interfaces.
  • Mgosoft XPS Converter SDK  v.9.0.1Convert XPS files to PDF, PS format and dozens of image formats, such as TIFF, JPEG, PNG, BMP, PCX, GIF, WMF, EMF, TGA and so on, it retains the layout, images, text, line, ellipse, color, and formatting of the original XPS file.
  • SentiVeillance SDK Trial  v.6.0.178880Real-time biometric face recognition and pedestrian/vehicle tracking SDK for surveillance systems and networks. Supports up to 10 cameras on one PC. Automatic identification against watch list, gender/emotions detection. See: youtu.be/Jpt5jE5rwCQ ...
  • Reliby  v.1.2Reliby 1.2 is a very tractable and powerful web browser tool that helps you eeload all your Live Bookmarks aka RSS feeds with a push of a button.Requirements:Windows XP/VistaMozilla Firefox 1.5 - ...
  • Religion::Islam::Qibla  v.1.02Religion::Islam::Qibla is a Perl module that calculates the Muslim Qiblah Direction, Great Circle Distance, and Great Circle Direction. SYNOPSIS use Religion::Islam::Qibla, #create new object with default options, Destination point is Kabah ...