Filtrex v0.3.0 Filtrex.Condition.DateTime

Filtrex.Condition.DateTime is a specific condition type for handling datetime filters with various comparisons.

Configuration Options:

KeyTypeDescription
formatstringthe format* to use for parsing the incoming date string
(defaults to {ISOz} and can use any valid Timex format)

* See https://hexdocs.pm/timex/Timex.Format.DateTime.Formatters.Default.html

There are three different value formats allowed based on the type of comparator:

KeyTypeFormat / Allowed Values
inversebooleanSee Filtrex.Condition.Text
columnstringany allowed keys from passed config
comparatorstringafter, on or after, before, on or before,
equals, does not equal
valuestring“YYYY-MM-DD’T’HH:MM:ss.SSS’Z’” ({ISOz})
typestring“datetime”

Summary

Functions

Callback implementation for Filtrex.Condition.comparators/0

Callback implementation for Filtrex.Condition.parse/2

Callback implementation for Filtrex.Condition.type/0

Functions

comparators()

Callback implementation for Filtrex.Condition.comparators/0.

parse(config, map)

Callback implementation for Filtrex.Condition.parse/2.

type()

Callback implementation for Filtrex.Condition.type/0.