From 59cbb739078cf329273a1f4ad9570db8dac30af9 Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Fri, 14 Jan 2022 21:44:08 +0100 Subject: [PATCH] Add missing "can" in templating docs (#21196) --- source/_docs/configuration/templating.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 95c2ab30150..87ee4e9cb0a 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -319,8 +319,8 @@ The same thing can also be expressed as a filter: {% endraw %} - `as_datetime()` converts a string containing a timestamp, or valid UNIX timestamp, to a datetime object. -- `as_timestamp(value, default)` converts datetime object or string to UNIX timestamp. If that fails, returns the `default` value, or if omitted `None`. This function also be used as a filter. -- `as_local()` converts datetime object to local time. This function also be used as a filter. +- `as_timestamp(value, default)` converts datetime object or string to UNIX timestamp. If that fails, returns the `default` value, or if omitted `None`. This function can also be used as a filter. +- `as_local()` converts datetime object to local time. This function can also be used as a filter. - `strptime(string, format)` parses a string based on a [format](https://docs.python.org/3.8/library/datetime.html#strftime-and-strptime-behavior) and returns a datetime object. If that fails, returns the `default` value, or if omitted the unprocessed input value. - `relative_time` converts datetime object to its human-friendly "age" string. The age can be in second, minute, hour, day, month or year (but only the biggest unit is considered, e.g., if it's 2 days and 3 hours, "2 days" will be returned). Note that it only works for dates _in the past_. - `timedelta` returns a timedelta object and accepts the same arguments as the Python `datetime.timedelta` function -- days, seconds, microseconds, milliseconds, minutes, hours, weeks.