file: add doc on how to convert epoch seconds to datetime (#53357)
This commit is contained in:
parent
156613f025
commit
6e168776db
1 changed files with 6 additions and 0 deletions
|
@ -181,6 +181,12 @@ EXAMPLES = r'''
|
|||
state: file
|
||||
modification_time: now
|
||||
access_time: now
|
||||
|
||||
- name: Set access time based on seconds from epoch value
|
||||
file:
|
||||
path: /etc/another_file
|
||||
state: file
|
||||
access_time: '{{ "%Y%m%d%H%M.%S" | strftime(stat_var.stat.atime) }}'
|
||||
'''
|
||||
RETURN = r'''
|
||||
|
||||
|
|
Loading…
Reference in a new issue