file: add doc on how to convert epoch seconds to datetime (#53357)

pull/53446/head
Jordan Borean 6 years ago committed by GitHub
parent 156613f025
commit 6e168776db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save