From 7068e285b2dc1cebbd4863e0c80facc84df4b0cc Mon Sep 17 00:00:00 2001 From: Toto Date: Mon, 30 Mar 2026 22:45:33 +0700 Subject: [PATCH] docs: fix formatting in Time library guide --- user_guide_src/source/libraries/time.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/user_guide_src/source/libraries/time.rst b/user_guide_src/source/libraries/time.rst index 53b869b1b12a..d9df6f545c51 100644 --- a/user_guide_src/source/libraries/time.rst +++ b/user_guide_src/source/libraries/time.rst @@ -328,16 +328,16 @@ modify the existing Time instance, but will return a new instance. addCalendarMonths() / subCalendarMonths() ----------------------------------------- -Modifies the current Time by adding or subtracting whole calendar months. These methods can be useful if you -require no calendar months are skipped in recurring dates. Refer to the table below for a comparison between +Modifies the current Time by adding or subtracting whole calendar months. These methods can be useful if you +require no calendar months are skipped in recurring dates. Refer to the table below for a comparison between ``addMonths()`` and ``addCalendarMonths()`` for an initial date of ``2025-01-31``. -======= =========== =================== +======= =========== =================== $months addMonths() addCalendarMonths() ======= =========== =================== -1 2025-03-03 2025-02-28 -2 2025-03-31 2025-03-31 -3 2025-05-01 2025-04-30 +1 2025-03-03 2025-02-28 +2 2025-03-31 2025-03-31 +3 2025-05-01 2025-04-30 4 2025-05-31 2025-05-31 5 2025-07-01 2025-06-30 6 2025-07-31 2025-07-31 @@ -401,7 +401,7 @@ isPast() .. versionadded:: 4.7.0 Determines if the current instance's time is in the past, relative to "now". -It returns a boolean true/false:: +It returns a boolean true/false: .. literalinclude:: time/043.php @@ -413,7 +413,7 @@ isFuture() .. versionadded:: 4.7.0 Determines if the current instance's time is in the future, relative to "now". -It returns a boolean true/false:: +It returns a boolean true/false: .. literalinclude:: time/044.php