Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misterabdul/praytimes
Implementation of moslem prayer times in C
https://github.com/misterabdul/praytimes
c cli gpl moslem prayer-times
Last synced: 9 days ago
JSON representation
Implementation of moslem prayer times in C
- Host: GitHub
- URL: https://github.com/misterabdul/praytimes
- Owner: misterabdul
- License: gpl-3.0
- Created: 2022-01-24T06:38:21.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-02T07:29:22.000Z (almost 3 years ago)
- Last Synced: 2024-11-14T02:33:50.804Z (2 months ago)
- Topics: c, cli, gpl, moslem, prayer-times
- Language: C
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PrayTimes
Implementation of moslem prayer times in C. Based on javascript code from: [PrayTime.js (ver 2.3)](https://web.archive.org/web/20200729090114/http://praytimes.org/code/).
## Example Usage
```sh
$ 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
```sh
$ make all -CFLAG=-O2
$ sudo make install
$ sudo make uninstall
```## Aliasing
You may create shell alias for more convenient usage.
```sh
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 (?)