Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Jyxo
Time
Util
PHP Class Jyxo\Time\Util
Author:
Jakub Tománek
显示文件
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