morilog / jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.
MIT License
852 stars 107 forks source link

Add new methods #165

Closed alissn closed 2 months ago

alissn commented 6 months ago

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 day (Friday) of the current week.

getEndDayOfMonth: Retrieves the last day of the current month.

getEndDayOfYear: Retrieves the last day of the current year.

getEndDayOfQuarter: Retrieves the last day of the current quarter.

getQuarter: Retrieves the quarter (1, 2, 3, or 4) of the current date.

These methods enhance the functionality of the package by providing convenient ways to obtain specific dates such as the beginning or end of a quarter, week, month, or year. Feel free to review and provide feedback on the changes.