PHP Класс Jyxo\Time\Util

Автор: Jakub Tománek
Показать файл Открыть проект

Открытые методы

Метод Описание
isWorkDay ( Time $day ) : boolean Checks if the given date is a working day.
nextMonth ( Time $now = null ) : Time Returns the next month.

Описание методов

isWorkDay() публичный статический Метод

Checks if the given date is a working day.
public static isWorkDay ( Time $day ) : boolean
$day Time Date to be checked
Результат boolean

nextMonth() публичный статический Метод

If the current date is greater than the next month's number of days, returns the next month's last date. This is different from strtotime('+1 month') behaviour, where August 31st returns October 1st.
public static nextMonth ( Time $now = null ) : Time
$now Time Current date/time
Результат Time