jalali icon indicating copy to clipboard operation
jalali copied to clipboard

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.

Results 20 jalali issues
Sort by recently updated
recently updated
newest added

Salam Aliakum, Hope all is well. Let me know if you can assist in Server Side jalalian:: now(), a date differs from current date. Example: Current date 31.06.1401 and it...

- Added diff method which will return difference between any given dates in an array containing days, months and days. - It should be noted that Carbon diff functions calculate...

hi according to the documentation, there is not validation. manually validate?

I was trying to install the package on Laravel 11 with PHP 8.3 but it failed ... ``` #composer require morilog/jalali:3.* ./composer.json has been updated Running composer update morilog/jalali Loading...

Hi Apparently, there are problems in calculating the past time - Package Version: 3.4 **Code:** ```php use Morilog\Jalali\Jalalian; $date = Jalalian::fromDateTime('2009-03-20 00:00:00'); $result = $date->subYears(1); // or (new Jalalian(1387, 12,...

Hi there, In this pull request, I've implemented a GitHub Action to run tests on push and create a merge request. The tests now cover PHP versions 7.1, 7.2, 7.3,...

Hi, This PR introduces several new methods to the package. The added methods are as follows: --- `getFirstDayOfQuarter`: Retrieves the first day of the current quarter. `getEndDayOfWeek`: Retrieves the last...

### I got this error **stacktrace** - /vendor/morilog/jalali/src/CalendarUtils.php(314): Morilog\\Jalali\\CalendarUtils::jalaliCal() - /vendor/morilog/jalali/src/CalendarUtils.php(54): Morilog\\Jalali\\CalendarUtils::d2j() - /vendor/morilog/jalali/src/Jalalian.php(90): Morilog\\Jalali\\CalendarUtils::toJalali() - /vendor/morilog/jalali/src/Jalalian.php(124): Morilog\\Jalali\\Jalalian::fromCarbon() - /storage/framework/views/a3def3027212fab8febcb2ec7707686328ec40ea.php(42): Morilog\\Jalali\\Jalalian::fromDateTime() what does this even mean?

in my project, I need to check if the date is Jalali or Gregorian?! so, is there any method like this? ``` \Morilog\Jalali\CalendarUtils::isJalali('1402-06-06'); // TRUE \Morilog\Jalali\CalendarUtils::isJalali('2023-08-23'); // FALSE ```