Méthode |
Description |
|
between ( Cake\Chronos\ChronosInterface $dt1, Cake\Chronos\ChronosInterface $dt2, boolean $equal = true ) : boolean |
Determines if the instance is between two others |
|
closest ( Cake\Chronos\ChronosInterface $dt1, Cake\Chronos\ChronosInterface $dt2 ) : static |
Get the closest date from the instance. |
|
eq ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Determines if the instance is equal to another |
|
farthest ( Cake\Chronos\ChronosInterface $dt1, Cake\Chronos\ChronosInterface $dt2 ) : static |
Get the farthest date from the instance. |
|
getWeekendDays ( ) : array |
Get weekend days |
|
gt ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Determines if the instance is greater (after) than another |
|
gte ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Determines if the instance is greater (after) than or equal to another |
|
isBirthday ( Cake\Chronos\ChronosInterface $dt = null ) : static |
Check if its the birthday. Compares the date/month values of the two dates. |
|
isFriday ( ) : boolean |
Checks if this day is a Friday. |
|
isFuture ( ) : boolean |
Determines if the instance is in the future, ie. greater (after) than now |
|
isLeapYear ( ) : boolean |
Determines if the instance is a leap year |
|
isMonday ( ) : boolean |
Checks if this day is a Monday. |
|
isMutable ( ) : boolean |
Check if instance of ChronosInterface is mutable. |
|
isPast ( ) : boolean |
Determines if the instance is in the past, ie. less (before) than now |
|
isSameDay ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Checks if the passed in date is the same day as the instance current day. |
|
isSaturday ( ) : boolean |
Checks if this day is a Saturday. |
|
isSunday ( ) : boolean |
Checks if this day is a Sunday. |
|
isThisMonth ( ) : boolean |
Returns true if this object represents a date within the current month |
|
isThisWeek ( ) : boolean |
Returns true if this object represents a date within the current week |
|
isThisYear ( ) : boolean |
Returns true if this object represents a date within the current year |
|
isThursday ( ) : boolean |
Checks if this day is a Thursday. |
|
isToday ( ) : boolean |
Determines if the instance is today |
|
isTomorrow ( ) : boolean |
Determines if the instance is tomorrow |
|
isTuesday ( ) : boolean |
Checks if this day is a Tuesday. |
|
isWednesday ( ) : boolean |
Checks if this day is a Wednesday. |
|
isWeekday ( ) : boolean |
Determines if the instance is a weekday |
|
isWeekend ( ) : boolean |
Determines if the instance is a weekend day |
|
isWithinNext ( string | integer $timeInterval ) : boolean |
Returns true this instance will happen within the specified interval |
|
isYesterday ( ) : boolean |
Determines if the instance is yesterday |
|
lt ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Determines if the instance is less (before) than another |
|
lte ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Determines if the instance is less (before) or equal to another |
|
max ( Cake\Chronos\ChronosInterface $dt = null ) : static |
Get the maximum instance between a given instance (default now) and the current instance. |
|
min ( Cake\Chronos\ChronosInterface $dt = null ) : static |
Get the minimum instance between a given instance (default now) and the current instance. |
|
ne ( Cake\Chronos\ChronosInterface $dt ) : boolean |
Determines if the instance is not equal to another |
|
setWeekendDays ( array $days ) : void |
Set weekend days |
|
wasWithinLast ( string | integer $timeInterval ) : boolean |
Returns true this instance happened within the specified interval |
|