Itl.Prayer

g GObject.Object GObject.Object Itl.Prayer Itl.Prayer GObject.Object->Itl.Prayer

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

getNextDayFajr (cdate)

getNorthQibla ()

getPrayerTimes (cdate)

setLocation (degreeLong, degreeLat, gmtDiff, dst)

setMethod (n)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

asr-offset

float

r/w

Asr offset

degree-lat

float

r/w

Latitude in decimal degree

degree-long

float

r/w

Longitude in decimal degree

dhuhr-offset

float

r/w

Dhuhr offset

dst

bool

r/w

Daylight savings time switch (0 if not used)

extreme

Itl.ExtremeMethod

r/w

Extreme latitude calculation method

extreme-lat

float

r/w

Latitude at which the extreme method should always be used

fajr-ang

float

r/w

Fajr angle

fajr-inv

int

r/w

Amount of minutes between Fajr and Shurooq (0 if not used)

fajr-offset

float

r/w

Fajr offset

gmt-diff

float

r/w

GMT difference at regular time.

imsaak-ang

float

r/w

The angle difference between Imsaak and Fajr

imsaak-inv

int

r/w

Amount of minutes between Imsaak and Fajr

isha-offset

float

r/w

Ishaa’ offset

ishaa-ang

float

r/w

Ishaa’ angle

ishaa-inv

int

r/w

Amount of minutes between Ishaa and Maghrib (0 if not used)

maghrib-offset

float

r/w

Maghrib offset

mathhab

Itl.Mathhab

r/w

Asr prayer shadow ratio

method

Itl.Method

r

Calculation method

nearest-lat

float

r/w

Latitude Used for the ‘Nearest Latitude’ extreme methods.

offset

bool

r/w

This option allows you to add or subtract any amount of minutes to the daily computed prayer times based on values (in minutes) for each prayer in the offList array

pressure

float

r/w

Atmospheric pressure in millibars (the astronomical standard value is 1010)

round

Itl.RoundMethod

r/w

Method used for rounding seconds

sea-level

float

r/w

Height above Sea level in meters

shurooq-offset

float

r/w

Shurooq offset

temperature

float

r/w

Temperature in Celsius degree (the astronomical standard value is 10)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Itl.Prayer(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Itl.PrayerClass

classmethod new()
Returns:

a new Itl.Prayer

Return type:

Itl.Prayer

Creates a new Itl.Prayer

getNextDayFajr(cdate)
Parameters:

cdate (GLib.Date) – Date for which to calculate Fajr for the day after

Returns:

DateTime struct for next day fajr time

Return type:

GLib.DateTime

This function calculates prayer times for the given date

getNorthQibla()
Returns:

Qibla direction

Return type:

float

Get Qibla direction

getPrayerTimes(cdate)
Parameters:

cdate (GLib.Date) – Date for which to calculate prayer times

Returns:

6 prayer times from Fajr till Isha’

Return type:

[GLib.DateTime]

This function calculates prayer times for the given date

setLocation(degreeLong, degreeLat, gmtDiff, dst)
Parameters:
  • degreeLong (float) – Longitude in decimal degree.

  • degreeLat (float) – Latitude in decimal degree.

  • gmtDiff (float) – GMT difference at regular time.

  • dst (bool) – Daylight savings time switch; (0 if not used).

Set location for which to calculate prayer times

setMethod(n)
Parameters:

n (Itl.Method) – auto fill method

This function is used to auto fill the Method structure with predefined data.

Property Details

Itl.Prayer.props.asr_offset
Name:

asr-offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Asr offset

Itl.Prayer.props.degree_lat
Name:

degree-lat

Type:

float

Default Value:

21.423333

Flags:

READABLE, WRITABLE

Latitude in decimal degree

Itl.Prayer.props.degree_long
Name:

degree-long

Type:

float

Default Value:

39.823333

Flags:

READABLE, WRITABLE

Longitude in decimal degree

Itl.Prayer.props.dhuhr_offset
Name:

dhuhr-offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Dhuhr offset

Itl.Prayer.props.dst
Name:

dst

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Daylight savings time switch (0 if not used)

Itl.Prayer.props.extreme
Name:

extreme

Type:

Itl.ExtremeMethod

Default Value:

Itl.ExtremeMethod.GOOD_INVALID

Flags:

READABLE, WRITABLE

Extreme latitude calculation method

Itl.Prayer.props.extreme_lat
Name:

extreme-lat

Type:

float

Default Value:

55.0

Flags:

READABLE, WRITABLE

Latitude at which the extreme method should always be used

Itl.Prayer.props.fajr_ang
Name:

fajr-ang

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Fajr angle

Itl.Prayer.props.fajr_inv
Name:

fajr-inv

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Amount of minutes between Fajr and Shurooq (0 if not used)

Itl.Prayer.props.fajr_offset
Name:

fajr-offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Fajr offset

Itl.Prayer.props.gmt_diff
Name:

gmt-diff

Type:

float

Default Value:

3.0

Flags:

READABLE, WRITABLE

GMT difference at regular time.

Itl.Prayer.props.imsaak_ang
Name:

imsaak-ang

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The angle difference between Imsaak and Fajr

Itl.Prayer.props.imsaak_inv
Name:

imsaak-inv

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Amount of minutes between Imsaak and Fajr

Itl.Prayer.props.isha_offset
Name:

isha-offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Ishaa’ offset

Itl.Prayer.props.ishaa_ang
Name:

ishaa-ang

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Ishaa’ angle

Itl.Prayer.props.ishaa_inv
Name:

ishaa-inv

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Amount of minutes between Ishaa and Maghrib (0 if not used)

Itl.Prayer.props.maghrib_offset
Name:

maghrib-offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Maghrib offset

Itl.Prayer.props.mathhab
Name:

mathhab

Type:

Itl.Mathhab

Default Value:

Itl.Mathhab.SHAFII

Flags:

READABLE, WRITABLE

Asr prayer shadow ratio

Itl.Prayer.props.method
Name:

method

Type:

Itl.Method

Default Value:

Itl.Method.NONE

Flags:

READABLE

Calculation method

Itl.Prayer.props.nearest_lat
Name:

nearest-lat

Type:

float

Default Value:

48.5

Flags:

READABLE, WRITABLE

Latitude Used for the ‘Nearest Latitude’ extreme methods.

Itl.Prayer.props.offset
Name:

offset

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

This option allows you to add or subtract any amount of minutes to the daily computed prayer times based on values (in minutes) for each prayer in the offList array

Itl.Prayer.props.pressure
Name:

pressure

Type:

float

Default Value:

1010.0

Flags:

READABLE, WRITABLE

Atmospheric pressure in millibars (the astronomical standard value is 1010)

Itl.Prayer.props.round
Name:

round

Type:

Itl.RoundMethod

Default Value:

Itl.RoundMethod.NOROUND

Flags:

READABLE, WRITABLE

Method used for rounding seconds

Itl.Prayer.props.sea_level
Name:

sea-level

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Height above Sea level in meters

Itl.Prayer.props.shurooq_offset
Name:

shurooq-offset

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Shurooq offset

Itl.Prayer.props.temperature
Name:

temperature

Type:

float

Default Value:

10.0

Flags:

READABLE, WRITABLE

Temperature in Celsius degree (the astronomical standard value is 10)