PHP Class Jyxo\Time\Util

Author: Jakub Tománek
Datei anzeigen Open project: jyxo/php

Public Methods

Method 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 method

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

nextMonth() public static method

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
return Time