Skip to content

Commit 2deaf0c

Browse files
update user guide
1 parent c6cbf0f commit 2deaf0c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

user_guide_src/source/libraries/time.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
328348
Comparing Two Times
329349
===================
330350

0 commit comments

Comments
 (0)