FEEL Data Types

A value can have one of the following types.

Null

Nothing, null or nil (i.e. the value is not present).

Some operations/functions return null if an argument in not valid or types doesn’t match.

null

Number

A whole or floating point number.

1
2.3
.4

String

"valid"

Boolean

true
false

Date

date("2017-03-10")

Time

A local or zoned time. The time can have an offset or time zone id.

time("11:45:30") 
time("13:30")

time("11:45:30+02:00")

time("10:31:10@Europe/Paris")

Date-Time

A date with a local or zoned time component. The time can have an offset or time zone id.

date and time("2015-09-18T10:31:10")

date and time("2015-09-18T10:31:10+01:00")

date and time("2015-09-18T10:31:10@Europe/Paris")

Day-Time-Duration

A duration based on seconds. It can contain days, hours, minutes and seconds.

duration("P4D")
duration("PT2H")
duration("PT30M")
duration("P1DT6H")

Year-Month-Duration

A duration based on the calendar. It can contain years and months.

duration("P2Y")
duration("P6M")
duration("P1Y6M")

List

A list of elements. Can be empty.

[]
[1,2,3]
["a","b"]

[["list"], "of", [["lists"]]]

Context

A list of key-value-pairs. Can be empty.

{}
{"a": 1}
{"b": 2, "c": "valid"}

{"nested": {"d": 3}}