The DateTime::add
method
View at GitHub
version: 1.0
Introduction
When adding RelativeTimeUnit::month() this method will try to change month and adjust day of the month.
Examples: - 2021-02-28 + RelativeTimeUnit::month() = 2021-03-28.
Description
Parameters
- Unit $timeUnit
Return Values
self