Date
formatting...Format and create dates.
Format
Initial value can, other than a parseable datetime string, be now
. Each time the variable is accessed the value will represent that date and time
at the time of access.
Arguments
Name | Type | Description | Default |
---|---|---|---|
format |
str |
python strftime format string |
required |
timezone |
str |
valid timezone name | None (local) |
offset |
str |
time span string describing the offset, Y = years, M = months, D = days, h = hours, m = minutes, s = seconds, e.g. 1Y-2M10D |
None |
Example
And value for variable "AtomicDate.arrival" is "now | format='%Y-%m-%dT%H:%M:%S.000Z', timezone=UTC"
This can then be used in a template: