$weekendDays
$weekendDays : array
Days of weekend
Provides various comparison operator methods for datetime objects.
eq(\Cake\Chronos\ChronosInterface $dt) : boolean
Determines if the instance is equal to another
\Cake\Chronos\ChronosInterface | $dt | The instance to compare with. |
ne(\Cake\Chronos\ChronosInterface $dt) : boolean
Determines if the instance is not equal to another
\Cake\Chronos\ChronosInterface | $dt | The instance to compare with. |
gt(\Cake\Chronos\ChronosInterface $dt) : boolean
Determines if the instance is greater (after) than another
\Cake\Chronos\ChronosInterface | $dt | The instance to compare with. |
gte(\Cake\Chronos\ChronosInterface $dt) : boolean
Determines if the instance is greater (after) than or equal to another
\Cake\Chronos\ChronosInterface | $dt | The instance to compare with. |
lt(\Cake\Chronos\ChronosInterface $dt) : boolean
Determines if the instance is less (before) than another
\Cake\Chronos\ChronosInterface | $dt | The instance to compare with. |
lte(\Cake\Chronos\ChronosInterface $dt) : boolean
Determines if the instance is less (before) or equal to another
\Cake\Chronos\ChronosInterface | $dt | The instance to compare with. |
between(\Cake\Chronos\ChronosInterface $dt1, \Cake\Chronos\ChronosInterface $dt2, boolean $equal = true) : boolean
Determines if the instance is between two others
\Cake\Chronos\ChronosInterface | $dt1 | The instance to compare with. |
\Cake\Chronos\ChronosInterface | $dt2 | The instance to compare with. |
boolean | $equal | Indicates if a > and < comparison should be used or <= or >= |
closest(\Cake\Chronos\ChronosInterface $dt1, \Cake\Chronos\ChronosInterface $dt2) : \Cake\Chronos\ChronosInterface
Get the closest date from the instance.
\Cake\Chronos\ChronosInterface | $dt1 | The instance to compare with. |
\Cake\Chronos\ChronosInterface | $dt2 | The instance to compare with. |
farthest(\Cake\Chronos\ChronosInterface $dt1, \Cake\Chronos\ChronosInterface $dt2) : \Cake\Chronos\ChronosInterface
Get the farthest date from the instance.
\Cake\Chronos\ChronosInterface | $dt1 | The instance to compare with. |
\Cake\Chronos\ChronosInterface | $dt2 | The instance to compare with. |
min(\Cake\Chronos\ChronosInterface|null $dt = null) : static
Get the minimum instance between a given instance (default now) and the current instance.
\Cake\Chronos\ChronosInterface|null | $dt | The instance to compare with. |
max(\Cake\Chronos\ChronosInterface|null $dt = null) : static
Get the maximum instance between a given instance (default now) and the current instance.
\Cake\Chronos\ChronosInterface|null | $dt | The instance to compare with. |
isSameDay(\Cake\Chronos\ChronosInterface $dt) : boolean
Checks if the passed in date is the same day as the instance current day.
\Cake\Chronos\ChronosInterface | $dt | The instance to check against. |
isBirthday(\Cake\Chronos\ChronosInterface|null $dt = null) : static
Check if its the birthday. Compares the date/month values of the two dates.
\Cake\Chronos\ChronosInterface|null | $dt | The instance to compare with or null to use current day. |