Skip to content

Commit 13e782d

Browse files
authored
Merge pull request #7636 from kenjis/docs-time.rst
docs: improve time.rst
2 parents 7740034 + dd94346 commit 13e782d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

user_guide_src/source/libraries/time.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ Instantiating
2222
*************
2323

2424
There are several ways that a new Time instance can be created. The first is simply to create a new instance
25-
like any other class. When you do it this way, you can pass in a string representing the desired time. This can
26-
be any string that PHP's strtotime function can parse:
25+
like any other class.
26+
27+
When you do it this way, you can pass in a string representing the desired time. This can
28+
be any string that PHP's `strtotime()`_ function can parse:
29+
30+
.. _strtotime(): https://www.php.net/manual/en/function.strtotime.php
2731

2832
.. literalinclude:: time/001.php
2933

@@ -159,7 +163,7 @@ toDateTimeString()
159163
==================
160164

161165
This is the first of three helper methods to work with the `IntlDateFormatter <https://www.php.net/manual/en/class.intldateformatter.php>`_ without having to remember their values.
162-
This will return a localized version of string formatted as (Y-m-d H:i:s):
166+
This will return a localized version of string formatted as (``Y-m-d H:i:s``):
163167

164168
.. literalinclude:: time/016.php
165169

0 commit comments

Comments
 (0)