Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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