geniusts / hijri-dates Goto Github PK
View Code? Open in Web Editor NEWPHP library to convert Gregorian date to Hijri date and vice versa
License: MIT License
PHP library to convert Gregorian date to Hijri date and vice versa
License: MIT License
$now = \GeniusTS\HijriDate\Date::now();
$now->format('l d F o', Date::INDIAN_NUMBERS);
It returns Tuesday ٢٧ Rajab ١٤٤٠
, which is actually not correct; it's 26 Rajab 1440.
Am I doing something wrong ?
Thanks in advance.
[28-Jan-2019 11:22:22 UTC] PHP Fatal error: Uncaught Error: Class 'GeniusTS\HijriDate\Hijri' not found in /home/theeb/public_html/GeniusTS/HijriDate/try.php:7
Stack trace:
#0 {main}
thrown in /home/theeblawyers/public_html/GeniusTS/HijriDate/try.php on line 7
Hello,
I tried to use this library but I found that there are no support for the Hijri Calendar "umm alqura".
This is an example:
$date_gregorian = \GeniusTS\HijriDate\Hijri::convertToGregorian(01, 04, 1440);
it should return the Gregorian date "2018-12-08" based on the official Hijri calendar (http://www.ummulqura.org.sa). But in fact, it returns "2018-12-09".
Note that, all days in the month "03" are valid but starting from the month "04" it will return wrong date. It seems that, it counts 30 days in the month "03" which is wrong as it is 29 days.
Title is self-explanatory. It's displaying 0 for 1st Shawwal (no adjustment)
at-akhir needs to be al-akhir
Arabic Translations not work when convert from Hijri date to Gregorian Date.
require DIR . '/vendor/autoload.php';
use GeniusTS\HijriDate\Date;
use GeniusTS\HijriDate\Translations\Arabic;
\GeniusTS\HijriDate\Date::setTranslation(new Arabic);
Date::setDefaultNumbers(Date::INDIAN_NUMBERS);
//$date = \GeniusTS\HijriDate\Hijri::convertToGregorian(05,07,1390);
only work with class function :
now();
today();
tomorrow();
yesterday();
Also, there is difficulty in writing dates as a variable.
thanks for any help.
I have installed hijre-dates with composer in codeigniter.
I am facing following issue while i upload my application on cpanel hosting
Fatal error: Default value for parameters with a class type hint can only be NULL in /home/xxxxx/public_html/sms/vendor/geniusts/hijri-dates/src/Hijri.php on line 64
Which version of PHP is required? I got this:
Package geniusts/hijri-dates at version has a PHP requirement incompatible with your PHP version (5.6.30)
$date = Hijri::convertToGregorian(1, 16, 1401);
// output is "1982-01-25" and it should be "1980-11-24"
According to this website that converts Hijri to Gregorian
https://beseyat.com/calendars/en/date-converter-hijri-gregorian.php
Hello,
The Hijri Date is not correct, For ex. It is showing that Ramadan has started yesterday (May 5th).
Although it is either today (May 6th) or tomorrow (May 7th).
Best Regards,
hi ,
how can convertToGregorian by formate 1439-05-05
like convertToHijri
use GeniusTS\HijriDate\Translations\Arabic;
\GeniusTS\HijriDate\Date::setTranslation(new Arabic);
what should i do to get date in string
$ar_date = \GeniusTS\HijriDate\Date::now();
Please check Sha'ban 1441 with this reference
https://www.islamicfinder.org/islamic-calendar/?language=id
the number of dates is different this year.
in this package only 29 days. while this year the sha'ban are 30 days.
in SSH I tried to run:
composer require geniusts/hijri-dates
but I recieve the error:
[InvalidArgumentException] Could not find package geniusts/hijri-dates at any version matching your PHP version 5.6.31.0
I'm on BLUEHOST.COM shared server. Using php 7.0.12 However when I run "php -v" on SSH I get php 5.6.31.0 !!! Any Idea why ?
Thanks for your efforts
How to get the last day on the month of a Hijri date?
Today English -2020-04-08
Today Hijri-15-8-1441
Last day of this Hijri month is 29-8-1441
it's happen when uploaded the project to the server and it's work localhost
Hello guys this returns any value when i convert date to Hijri and im using this in a controller
$today = \GeniusTS\HijriDate\Date::today();
return json_encode($today);
laravel V5.6.13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.