module

Krikri::JinjaDateTime

Python's naive datetime.datetime and datetime.timedelta as krikri-jinja host objects, for to_datetime/now() and the arithmetic Ansible templates do on them. Output formats follow CPython, pinned against ansible-core 2.19 (str, repr, ISO JSON, timedelta normalization with negative days).

Constants

MICROS_PER_DAY = 86400_i64 * MICROS_PER_SECOND
MICROS_PER_SECOND = 1000000_i64

Class methods

micros_between(from : Time, to : Time) : Int64
Source
register
Source
strptime(text : String, format : String) : DateTime

Python's datetime.strptime: the whole string must match the format.

Source
text(value : AnyValue) : String
Source

Nested types