File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed
user-guide/writing-workflows Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,33 @@ Generate a visualisation for a workflow without running it:
260
260
261
261
The web UI will have full graph vis. in a future release.
262
262
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
+
263
290
Rose Stem
264
291
---------
265
292
Original file line number Diff line number Diff line change @@ -599,10 +599,7 @@ The Environment Variable CYLC\_WORKFLOW\_INITIAL\_CYCLE\_POINT
599
599
600
600
At start up the initial cycle point is passed to job environments
601
601
as ``$CYLC_WORKFLOW_INITIAL_CYCLE_POINT `` and stored in the workflow
602
- database to persist across restarts. However it gets wiped out (set to
603
- ``None ``) by a :term: `warm start ` (``cylc play --start-cycle-point `` or ``cylc
604
- play --start-task ``) - which is essentially a restart that ignores prior state
605
- information.
602
+ database to persist across restarts.
606
603
607
604
The ``$CYLC_WORKFLOW_INITIAL_CYCLE_POINT `` variable allows tasks to
608
605
check if they are running in the initial cycle point, when different behaviour
You can’t perform that action at this time.
0 commit comments