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