Edson Tirelli created DROOLS-1545:
-------------------------------------
Summary: Fix date and time functions and arithmetic
Key: DROOLS-1545
URL:
https://issues.jboss.org/browse/DROOLS-1545
Project: Drools
Issue Type: Bug
Components: dmn engine
Affects Versions: 7.0.0.CR3
Reporter: Edson Tirelli
Assignee: Edson Tirelli
Fix For: 7.1.0.Final
This ticket includes two fixes:
1. For the {{date and time( from )}} , where {{from}} is a string, the time part of the
string should be optional. E.g.:
{code}
date and time( "2017-05-06" ) = date and time( "2017-05-06T00:00" )
{code}
2. Extend date arithmetics to support subtracting two dates. The result should be the
number of days between dates, ignoring daylight shifts and timezones. E.g.:
{code}
date( "2017-05-05" ) - date( "2017-05-01" ) = duration(
"P4D" )
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)