fzed51/calendar-helper

Function collections for working with a calendar.

v1.0.0 2020-07-19 20:51 UTC

This package is auto-updated.

Last update: 2024-10-20 07:12:46 UTC


README

Function collections for working with a calendar.

Installation

composer require fzed51/canlendar-helper

Use

Is a bisextile year

\CalendarHelper\Calendar::isBisextile(2020);
\CalendarHelper\Calendar::isBisextile(new Date());

return boolean

Number of days in the month

\CalendarHelper\Calendar::numberOfDays(2020,06);
\CalendarHelper\Calendar::numberOfDays(new Date());

return int

Is a holidays

\CalendarHelper\Calendar::isHolidays(2020,07,14);
\CalendarHelper\Calendar::isHolidays(new Date());

return boolean

List the holidays of a year

\CalendarHelper\Calendar::holidaysList();

return \DateTime[]