Skip to content

Commit 49d5365

Browse files
authored
Add cheat sheet entry on rose date -> isodatetime (#670)
1 parent 9de0792 commit 49d5365

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/7-to-8/cheat-sheet.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,33 @@ Generate a visualisation for a workflow without running it:
260260

261261
The web UI will have full graph vis. in a future release.
262262

263+
Datetime Operations
264+
-------------------
265+
266+
Datetime operations in task scripts:
267+
268+
.. list-table::
269+
:class: grid-table
270+
271+
* - **Cylc 7** & Rose 2019
272+
- **Cylc 8** (Rose 2)
273+
* - ::
274+
275+
rose date <point> --offset <offset>
276+
- ::
277+
278+
isodatetime <point> --offset <offset>
279+
* - ::
280+
281+
rose date -c
282+
# equivalent to:
283+
rose date "$CYLC_TASK_CYCLE_POINT"
284+
- ::
285+
286+
isodatetime ref
287+
# equivalent to:
288+
isodatetime "$CYLC_TASK_CYCLE_POINT"
289+
263290
Rose Stem
264291
---------
265292

0 commit comments

Comments
 (0)