Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.03 KB

PrayTimes

Implementation of moslem prayer times in C. Based on javascript code from: PrayTime.js (ver 2.3).

Example Usage

$ praytimes --year=2022 --month=01 --day=24 --timezone=7 --dst=0 --lat=3.58333 --long=97.666667 --elevation=0
Date       Imsak Fajr  Dhuhr Asr   Maghrib Isha
2022-01-24 05:13 05:23 12:43 16:06 18:42   19:54

Building, Installing, & Uninstalling

$ make all -CFLAG=-O2
$ sudo make install
$ sudo make uninstall

Aliasing

You may create shell alias for more convenient usage.

alias praytimes="praytimes --lat=3.583333 --long=97.666667 --elevation=0 --timezone=7 --dst=0"
alias today-praytimes="praytimes --year=$(date +\"%Y\") --month=$(date +\"%m\") --day=$(date +\"%d\")"

To Do

  • Memory leak test
  • Cleaner code & file structures (I think this is kinda messed-up)
  • More detailed documentation
  • Better implementation & optimization (?)
  • Better test-case & testing implementations (?)