ansible / ansible.builtin / v2.16.0 / filter / strftime date formating | "added in version" 2.4 of ansible.builtin" Authors: unknownansible.builtin.strftime (v2.16.0) — filter
pip
Install with pip install ansible-core==2.16.0
Using Python's C(strftime) function, take a data formating string and a date/time to create a formated date.
utc: default: false description: Whether time supplied is in UTC. type: bool _input: description: - A formating string following C(stftime) conventions. - See L(the Python documentation, https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior) for a reference. required: true type: str second: description: Datetime in seconds from C(epoch) to format, if not supplied C(gmttime/localtime) will be used. type: int
_value: description: A formatted date/time string. type: str