Skip to content

Commit 1698a9d

Browse files
committed
Fix broken merge
1 parent e99ceda commit 1698a9d

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

doc/manual/dates.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -319,25 +319,6 @@ This is useful with the do-block syntax for more complex temporal expressions:
319319
end
320320
2014-11-27
321321

322-
The :func:`tofirst` and :func:`tolast` similarly take a ``DateFunction`` as first argument, but adjust to the first or last of the month by default, with a keyword to specify the first or last of the year instead:
323-
324-
<<<<<<< HEAD
325-
=======
326-
.. doctest::
327-
328-
julia> Dates.tofirst(istuesday, Date(2014,7,13)) # Defaults to 1st of the month
329-
2014-07-01
330-
331-
julia> Dates.tofirst(istuesday, Date(2014,7,13); of=Dates.Year)
332-
2014-01-07
333-
334-
julia> Dates.tolast(istuesday, Date(2014,7,13))
335-
2014-07-29
336-
337-
julia> Dates.tolast(istuesday, Date(2014,7,13); of=Dates.Year)
338-
2014-12-30
339-
340-
>>>>>>> Convert dates codeblocks to doctests
341322
The final method in the adjuster API is the :func:`recur` function. :func:`recur` vectorizes the adjustment process by taking a start and stop date (optionally specified by a ``StepRange``), along with a ``DateFunction`` to specify all valid dates/moments to be returned in the specified range. In this case, the ``DateFunction`` is often referred to as the "inclusion" function because it specifies (by returning true) which dates/moments should be included in the returned vector of dates.
342323

343324
.. doctest::

0 commit comments

Comments
 (0)