Skip to content

Commit 1e6a54e

Browse files
committed
add additional clarity on ISO truncated dates
1 parent 4d4377d commit 1e6a54e

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

src/user-guide/writing-workflows/scheduling.rst

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -578,21 +578,20 @@ Note that day-of-week should always be specified when using weeks. If a time
578578
is not included, the calculation of the next or previous corresponding
579579
point will be done from midnight of the current day.
580580

581-
.. table:: Relative initial cycle point examples for ``now = 2018-03-14T15:12Z``
582-
583-
==================================== ==================
584-
Syntax Interpretation
585-
==================================== ==================
586-
``next(-00)`` 2100-01-01T00:00Z
587-
``previous(--01)`` 2018-01-01T00:00Z
588-
``next(---01)`` 2018-04-01T00:00Z
589-
``previous(--1225)`` 2017-12-25T00:00Z
590-
``next(-2006)`` 2020-06-01T00:00Z
591-
``previous(-W101)`` 2018-03-05T00:00Z
592-
``next(-W-1; -W-3; -W-5)`` 2018-03-14T00:00Z
593-
``next(-001; -091; -181; -271)`` 2018-04-01T00:00Z
594-
``previous(-365T12Z)`` 2017-12-31T12:00Z
595-
==================================== ==================
581+
.. csv-table:: Relative initial cycle point examples for ``now = 2018-03-14T15:12Z``
582+
using ISO8601 truncated dates.
583+
:widths: auto
584+
585+
Syntax, Description, Interpretation
586+
``next(-00)``, Any century; next year 00, 2100-01-01
587+
``previous(--01)``, Any year; next month 01, 2018-01-01
588+
``next(---01)``, Any year; any month; next 1st of month, 2018-04-01
589+
``previous(--1225)``, Any year; previous Dec 25, 2017-12-25
590+
``next(-2006)``, Any century; next June in a year ending 20, 2020-06-01
591+
``previous(-W101)``, Any century; previous week 10 day 1, 2018-03-05
592+
``next(-W-1; -W-3; -W-5)``, "Any year; any week; next day 1, 3 or 5", 2018-03-14
593+
``next(-001; -091; -181; -271)``, "Any year; day 1, 91, 181 or 271", 2018-04-01
594+
``previous(-365T12Z)``, Any year; previous day 356 at 12Z, 2017-12-31T12:00Z
596595

597596

598597
The Environment Variable CYLC\_WORKFLOW\_INITIAL\_CYCLE\_POINT

0 commit comments

Comments
 (0)