Considering Dates as a Data Type in EvalEx #379
Replies: 2 comments 2 replies
-
Hi, yes, date types were also on my mind, when I designed version 3 of EvalEx.
Some basic operators could be modified to support these types:
Also some date functions could be added:
Support for time zones is an open question for me. I think that would be a very good additional feature for e.g. version 3.1 of EvalEx. |
Beta Was this translation helpful? Give feedback.
-
I haven't thought this all in detail, so this are just some ideas. Writing DATE_TIME and PERIOD in an expression could be achieved easiest by using a function, some kind of constructor, e.g.:
The Accessing the DATE_TIME and PERIOD parts could also be done through functions, or more elegant by using the structure operator: Also, I think a DATE could be seen as a DATE_TIME with the time fields set to zero. |
Beta Was this translation helpful? Give feedback.
-
I've been able to work with expressions that involve numbers, strings, lists, maps, and dates. However, I'm aware that dates are not currently supported as a standard data type in EvalEx. I was wondering if it would be worth considering adding support for dates in EvalEx?
Beta Was this translation helpful? Give feedback.
All reactions