jalali icon indicating copy to clipboard operation
jalali copied to clipboard

Added diff method

Open omidfarahani opened this issue 2 years ago • 1 comments

  • 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 date differences based on Gregorian calendar months and are not suitable for Jalali dates.
  • Added getLastDayOfMonth method
  • Added getLastDayOfYear method
  • new methods are accompanied by corresponding test methods

omidfarahani avatar Sep 16 '22 13:09 omidfarahani

These methods will be added in the new major version, soon.

morilog avatar Sep 16 '22 15:09 morilog

Please fix your styles and use camelCase variable names

morilog avatar May 09 '24 08:05 morilog

As two new methods (getEndDayofMonth and getEndDayOfYear) did the same job which was expected of getLastDayOfMonth and getLastDayofYear, there was no need for my methods. So I closed this request and created a new one including just the diff method.

omidfarahani avatar May 09 '24 09:05 omidfarahani