lte
Reports whether the value falls on or before the given date, the same stance LtTime takes on what counts as a date.
Equality here is the same instant rather than the same day.
InputArgumentsReturns
Sourcetime.Timetime.Timeboolfloat64float64boolBasicSource
Reads a warning window off a day count, which is how a template asks whether something is expiring soon.
Given
{"days_left": 12}Template
{{ days_left | lte:14 }}Result
true