PHP Class Jyxo\Time\Util

Author: Jakub Tománek
Afficher le fichier Open project: jyxo/php

Méthodes publiques

Méthode Description
isWorkDay ( Time $day ) : boolean Checks if the given date is a working day.
nextMonth ( Time $now = null ) : Time Returns the next month.

Method Details

isWorkDay() public static méthode

Checks if the given date is a working day.
public static isWorkDay ( Time $day ) : boolean
$day Time Date to be checked
Résultat boolean

nextMonth() public static méthode

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
Résultat Time