Skip to content

Commit 74cbee9

Browse files
Update doc/reference/reference_lua/datetime.rst
Co-authored-by: Andrey Aksenov <38073144+andreyaksenov@users.noreply.github.com>
1 parent 9c81b9d commit 74cbee9

File tree

1 file changed

+28
-30
lines changed

1 file changed

+28
-30
lines changed

doc/reference/reference_lua/datetime.rst

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -974,43 +974,41 @@ If you need to compare the ``datetime`` and ``interval`` object values, you can
974974

975975
Support for relational operators for ``interval`` objects has been added since :doc:`2.11.0 </release/2.11.0>`.
976976

977-
**Example 1:**
977+
**Example 1:**
978978

979-
.. code-block:: tarantoolsession
979+
.. code-block:: tarantoolsession
980980
981-
tarantool> dt1 = datetime.now()
982-
---
983-
...
981+
tarantool> dt1 = datetime.now()
982+
---
983+
...
984984
985-
tarantool> dt2 = datetime.now()
986-
---
987-
...
985+
tarantool> dt2 = datetime.now()
986+
---
987+
...
988988
989-
tarantool> dt1 == dt2
990-
---
991-
- false
992-
...
989+
tarantool> dt1 == dt2
990+
---
991+
- false
992+
...
993993
994-
tarantool> dt1 < dt2
995-
---
996-
- true
997-
...
994+
tarantool> dt1 < dt2
995+
---
996+
- true
997+
...
998998
999-
**Example 2:**
999+
**Example 2:**
10001000

1001-
.. code-block:: tarantoolsession
1002-
1003-
tarantool> iv1 = datetime.interval.new({month = 1})
1004-
---
1005-
...
1001+
.. code-block:: tarantoolsession
10061002
1007-
tarantool> iv2 = datetime.interval.new({month = 2})
1008-
---
1009-
...
1003+
tarantool> iv1 = datetime.interval.new({month = 1})
1004+
---
1005+
...
10101006
1011-
tarantool> iv1 < iv2
1012-
---
1013-
- true
1014-
...
1007+
tarantool> iv2 = datetime.interval.new({month = 2})
1008+
---
1009+
...
10151010
1016-
tarantool>
1011+
tarantool> iv1 < iv2
1012+
---
1013+
- true
1014+
...

0 commit comments

Comments
 (0)