From 31a1351ee55390a76dad4363250dfa7fbece93eb Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 28 Jun 2023 17:50:54 +0900 Subject: [PATCH 1/2] docs: add link to php.net --- user_guide_src/source/libraries/time.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/libraries/time.rst b/user_guide_src/source/libraries/time.rst index c9baf8a8f597..d471ad8466f7 100644 --- a/user_guide_src/source/libraries/time.rst +++ b/user_guide_src/source/libraries/time.rst @@ -22,8 +22,12 @@ Instantiating ************* There are several ways that a new Time instance can be created. The first is simply to create a new instance -like any other class. When you do it this way, you can pass in a string representing the desired time. This can -be any string that PHP's strtotime function can parse: +like any other class. + +When you do it this way, you can pass in a string representing the desired time. This can +be any string that PHP's `strtotime()`_ function can parse: + +.. _strtotime(): https://www.php.net/manual/en/function.strtotime.php .. literalinclude:: time/001.php From dd94346a3abdaaac3ef8d14e63c101d318bf1c0b Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 28 Jun 2023 17:51:13 +0900 Subject: [PATCH 2/2] docs: text decration --- user_guide_src/source/libraries/time.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/time.rst b/user_guide_src/source/libraries/time.rst index d471ad8466f7..2175a8c681a3 100644 --- a/user_guide_src/source/libraries/time.rst +++ b/user_guide_src/source/libraries/time.rst @@ -163,7 +163,7 @@ toDateTimeString() ================== This is the first of three helper methods to work with the `IntlDateFormatter `_ without having to remember their values. -This will return a localized version of string formatted as (Y-m-d H:i:s): +This will return a localized version of string formatted as (``Y-m-d H:i:s``): .. literalinclude:: time/016.php