Skip to content

Commit 9a5f50d

Browse files
rlangusoraNod
andauthored
Update playbooks_templating_now.rst (#1099)
Added an example to how to use the function. Co-authored-by: Don Naro <[email protected]>
1 parent 5a1806b commit 9a5f50d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/docsite/rst/playbook_guide/playbooks_templating_now.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ utc
1313
Specify ``True`` to get the current time in UTC. Defaults to ``False``.
1414

1515
fmt
16-
Accepts a `strftime <https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior>`_ string that returns a formatted date time string.
16+
Accepts a `strftime <https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior>`_ string that returns a formatted date time string.
17+
18+
For example: ``dtg: "Current time (UTC): {{ now(utc=true,fmt='%Y-%m-%d %H:%M:%S') }}"``

0 commit comments

Comments
 (0)