Coder Social home page Coder Social logo

prayertimesapiv2's Introduction

PrayerTimesAPIV2

Features

  • Better code than the old version of PrayerTimesAPI (json handling wise)

  • No longer needed to be on windows 10 or above or have location services enabled

  • Able to get the prayer times today

  • Able to get the prayer times of a specified month & year

  • Able to get the prayer times of a specified date

  • Way way way more portable than the old version of PrayerTimesAPI

  • Uses a better API

Example

using PrayerTimesAPIV2;

API api = new();

Console.WriteLine(api.PrayerTimesForToday(Enums.calculationMethods.Umm_Al_Qura_University__Makkah, Enums.shafaq.general, Enums.school.Hanafi, Enums.midnightMode.Standard, Enums.latitudeAdjustmentMethod.Angle_Based, false).Fajr);
Console.WriteLine(api.PrayerTimesForDay("24/02/2014", Enums.calculationMethods.Umm_Al_Qura_University__Makkah, Enums.shafaq.general, Enums.school.Hanafi, Enums.midnightMode.Standard, Enums.latitudeAdjustmentMethod.Angle_Based, false).Fajr);

Console.WriteLine("\n");

foreach(Datum time in api.PrayerTimesForYear_Month(2023, 2, Enums.calculationMethods.Umm_Al_Qura_University__Makkah, Enums.shafaq.general, Enums.school.Hanafi, Enums.midnightMode.Standard, Enums.latitudeAdjustmentMethod.Angle_Based, false))
{
    Console.WriteLine($"Date: {time.date.readable}       Fajr: {time.timings.Fajr}         Sunrise: {time.timings.Sunrise}         Dhuhr: {time.timings.Dhuhr}         Asr: {time.timings.Asr}         Maghrib: {time.timings.Maghrib}          Isha: {time.timings.Isha}");
}

Thread.Sleep(-1);

prayertimesapiv2's People

Contributors

halal-beef avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.