Skip to content

Jinja2 Functions

Peering Manager exposes functions in addition to existing Jinja2 provided ones. These functions are used to run custom logics that may be of help while writing templates.

now

Returns the date and time when this is called.

Optional parameters:

Examples:

/* Managed by Peering Manager {{ now() }} */
/* Managed by Peering Manager {{ now(format="%Y-%m-%d") }} */
/* Managed by Peering Manager {{ now(timezone="UTC") }} */
/* Managed by Peering Manager {{ now(format="%Y-%m-%dT%H:%M", timezone="UTC") }} */