Skip to content

Implementation of moslem prayer times in C

License

Notifications You must be signed in to change notification settings

misterabdul/praytimes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (?)

About

Implementation of moslem prayer times in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published