adhanMap: Mapping prayer times.

View source: R/adhanMap.R

adhanMapR Documentation

Mapping prayer times.

Description

Mapping prayer times of a city to another city, based on a reference time. This is useful for those who live in cities with very long nights/days and wish to follow prayer times of another city.

Usage

adhanMap(method, city, country, day, month, year, mapCity, mapCountry, mapBy)

Arguments

city

Character string with a city name. Defining this parameter is mandatory!

country

Character string that includes a country's name. see cointries() for full list of countries ! Defining this parameter is mandatory!

day

The day. either a number of a character string, e.g. "21". If missing, the current date (obtained from your system) will be used.

month

The month. either a number of a character string, e.g. "12". If missing, the current date (obtained from your system) will be used.

year

The year. either a number of a character string, e.g. "2021". If missing, the current date (obtained from your system) will be used.

mapCity

The city which its prayer time you want to follow.

mapCountry

The country where its prayer time you want to follow.

mapBy

The reference time to map. It can be either "Fajr", "Sunrise", "Dhuhr", "Asr", "Sunset", "Maghrib", "Isha", or "Imsak" !

Details

If mapBy is to set "Dhur", the "Dhur" prayer times in the 'map' location (e.g. Mecca, Saudi Arabia) is mapped to the "Dhur" prayer time in your location of interest (e.g. Helsinki, Finland). Then all the other prayer times in your location of interest (i.e. Helsinki) are calculated according to the differecne of other prayer times from "Dhur" in the mapping location (i.e. Mecca).

Value

vector of character strings showing the prayer times.

Author(s)

Ali Oghabian

See Also

adhan adhanMapMonth

Examples

adhanMap(
    method="7",
    city="Helsinki",
    country="Finland",
    mapCity="Mecca",
    mapCountry="Saudi Arabia",
    mapBy="Dhuhr")

gacatag/adhan documentation built on April 6, 2024, 4:11 a.m.