Skip to content

Commit cdf2977

Browse files
committed
docs: add links, explanations
1 parent dfa4c3a commit cdf2977

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

user_guide_src/source/libraries/time.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extension's features to convert times across timezones and display the output co
77
is the ``Time`` class and lives in the ``CodeIgniter\I18n`` namespace.
88

99
.. note:: Since the Time class extends DateTime, if there are features that you need that this class doesn't provide,
10-
you can likely find them within the DateTime class itself.
10+
you can likely find them within the `DateTime <https://www.php.net/manual/en/class.datetime.php>`_ class itself.
1111

1212
.. contents::
1313
:local:
@@ -136,7 +136,7 @@ not aware of locales:
136136
Displaying the Value
137137
********************
138138

139-
Since the Time class extends DateTime, you get all of the output methods that provides, including the format() method.
139+
Since the Time class extends DateTime, you get all of the output methods that provides, including the ``format()`` method.
140140
However, the DateTime methods do not provide a localized result. The Time class does provide a number of helper methods
141141
to display localized versions of the value, though.
142142

@@ -152,22 +152,22 @@ A full listing of values can be found `here <https://unicode-org.github.io/icu-d
152152
toDateTimeString()
153153
==================
154154

155-
This is the first of three helper methods to work with the IntlDateFormatter without having to remember their values.
156-
This will return a string formatted as you would commonly use for datetime columns in a database (Y-m-d H:i:s):
155+
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.
156+
This will return a localized version of string formatted as you would commonly use for datetime columns in a database (Y-m-d H:i:s):
157157

158158
.. literalinclude:: time/016.php
159159

160160
toDateString()
161161
==============
162162

163-
Displays just the date portion of the Time:
163+
Displays just the localized version of date portion of the Time:
164164

165165
.. literalinclude:: time/017.php
166166

167167
toTimeString()
168168
==============
169169

170-
Displays just the time portion of the value:
170+
Displays just the localized version of time portion of the value:
171171

172172
.. literalinclude:: time/018.php
173173

0 commit comments

Comments
 (0)