PersianDate
PersianDate copied to clipboard
Fixed diff method
In this branch I did two things:
- Fixed bug where diff method did not return a negative value when the date was less than other.
- Added some tests for diff method. Tests for when date is less than, greater than and equals to the other one. I ran eslint and it had lots of errors but I did not fix them since I only wanted to fix diff method and nothing else. Not sure if I had to fix them or not 😅 Also I'm not sure if I should merge this branch with master or develop 😅