We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
Apparently, there are problems in calculating the past time
Code:
use Morilog\Jalali\Jalalian; $date = Jalalian::fromDateTime('2009-03-20 00:00:00'); $result = $date->subYears(1); // or (new Jalalian(1387, 12, 30))->subYears(1);
Result:
The text was updated successfully, but these errors were encountered:
Its because of your input, ESFAND at 1387 has not 30 days
Sorry, something went wrong.
OK, so 365 days before should be calculated It should not give an error
No branches or pull requests
Hi
Apparently, there are problems in calculating the past time
Code:
Result:
The text was updated successfully, but these errors were encountered: