You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/time.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ extension's features to convert times across timezones and display the output co
7
7
is the ``Time`` class and lives in the ``CodeIgniter\I18n`` namespace.
8
8
9
9
.. 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.
11
11
12
12
.. contents::
13
13
:local:
@@ -136,7 +136,7 @@ not aware of locales:
136
136
Displaying the Value
137
137
********************
138
138
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.
140
140
However, the DateTime methods do not provide a localized result. The Time class does provide a number of helper methods
141
141
to display localized versions of the value, though.
142
142
@@ -152,22 +152,22 @@ A full listing of values can be found `here <https://unicode-org.github.io/icu-d
152
152
toDateTimeString()
153
153
==================
154
154
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):
157
157
158
158
.. literalinclude:: time/016.php
159
159
160
160
toDateString()
161
161
==============
162
162
163
-
Displays just the date portion of the Time:
163
+
Displays just the localized version of date portion of the Time:
164
164
165
165
.. literalinclude:: time/017.php
166
166
167
167
toTimeString()
168
168
==============
169
169
170
-
Displays just the time portion of the value:
170
+
Displays just the localized version of time portion of the value:
0 commit comments