File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
user_guide_src/source/libraries Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,26 @@ modify the existing Time instance, but will return a new instance.
325325
326326.. literalinclude :: time/031.php
327327
328+ addCalendarMonths()
329+ -------------------
330+
331+ subCalendarMonths()
332+ -------------------
333+
334+ Modifies the current Time by adding or subtracting whole calendar months. Refer to the table below for a
335+ comparison between ``addMonths() `` and ``addCalendarMonths() ``. These methods can be useful if you require
336+ no calendar months are skipped in recurring dates.
337+
338+ ======= =========== ===================
339+ $months addMonths() addCalendarMonths()
340+ ======= =========== ===================
341+ 1 2025-03-03 2025-02-28
342+ 2 2025-03-31 2025-03-31
343+ 3 2025-05-01 2025-04-30
344+ 4 2025-05-31 2025-05-31
345+ 5 2025-07-01 2025-06-30
346+ 6 2025-07-31 2025-07-31
347+
328348Comparing Two Times
329349===================
330350
You can’t perform that action at this time.
0 commit comments