[jboss-jira] [JBoss JIRA] (DROOLS-1545) Fix date and time functions and arithmetic

Edson Tirelli (JIRA) issues at jboss.org
Sat May 6 11:14:00 EDT 2017


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)


More information about the jboss-jira mailing list