Skip to content

Commit 6350725

Browse files
Update README.rst
1 parent 98e7d84 commit 6350725

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,13 @@ particular time zone, it does not mean that they will come that way from the
149149
database. For example, if your application's settings.TIME_ZONE is set to
150150
``UTC``, you would get back:
151151

152-
``>>> print period.start``
153-
``datetime.datetime(2015, 1, 1, 5, 0, tzinfo=<UTC>)``
154-
``print period.end``
155-
``datetime.datetime(2015, 1, 2, 4, 59, 59, 999999, tzinfo=<UTC>)``
152+
.. code block:: python
153+
154+
print(period.start)
155+
datetime.datetime(2015, 1, 1, 5, 0, tzinfo=<UTC>)
156+
157+
print(period.end)
158+
datetime.datetime(2015, 1, 2, 4, 59, 59, 999999, tzinfo=<UTC>)
156159
157160
Here is how we would handle the displaying conversions from view to template:
158161

0 commit comments

Comments
 (0)