2011/6/30  <span dir="ltr">&lt;<a href="mailto:rouvas@mm.di.uoa.gr">rouvas@mm.di.uoa.gr</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What are the available symbolics for temporal values?<br>
That is, d is for days, m is for minutes, h is for hours, s is for seconds.<br>
Are there any other symbolics specifically for months and years?<br></blockquote><div><br>You can use ms for millisecond. There are no universally acceptable duration values for monts and years .<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
I haven&#39;t found any mentioning of them in the Fusion manual.<br>
I&#39;m using 5.0.1<br>
<br>
Thank you,<br>
-Stathis<br>
<br>
Wolfgang Laun wrote:<br>
&gt; See the &quot;Fusion&quot; manual, section on Temporal Reasoning/Temporal Operators.<br>
&gt; Even when the facts aren&#39;t events, these operators can still be applied to<br>
&gt; fields of type Date, e.g.<br>
&gt;<br>
&gt;     $p1: Person( $dob1: dob )<br>
&gt;     $p2: Person( $dob2: dob after[3d] $dob1 )<br>
&gt;<br>
&gt; -W<br>
&gt;<br>
&gt;<br>
&gt; On 28 June 2011 18:02, &lt;<a href="mailto:rouvas@mm.di.uoa.gr">rouvas@mm.di.uoa.gr</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi list,<br>
&gt;&gt;<br>
&gt;&gt; I feel this should be an elementary question but unfortunately I haven&#39;t<br>
&gt;&gt; been able to find a solution.<br>
&gt;&gt;<br>
&gt;&gt; I would like to perform date arithmetic in the when part of a rule.<br>
&gt;&gt;<br>
&gt;&gt; For example, I would like to express something like:<br>
&gt;&gt;<br>
&gt;&gt; rule &quot;Date compare rule&quot;<br>
&gt;&gt;  dialect &quot;mvel&quot;<br>
&gt;&gt; when<br>
&gt;&gt;  a : A()<br>
&gt;&gt;  b : B( a.creationDate &lt;= b.creationDate after 3 months)<br>
&gt;&gt; then<br>
&gt;&gt;  ...<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; Apart from using eval()&#39;s is there any other way to express these types<br>
&gt;&gt; of<br>
&gt;&gt; comparisons?<br>
&gt;&gt;<br>
&gt;&gt; Thank you for your time,<br>
&gt;&gt; -Stathis<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</blockquote></div><br>