'now'

0 views
Skip to first unread message

Paul Payne

unread,
Jul 17, 2019, 7:30:06 PM7/17/19
to ErgoAI, Flora-2, and XSB Users Forum
How does one reference "now"? This doesn't work:

@!{pastMilestone}
past(?MILESTONE) :- ?MILESTONE:Milestone, ?MILESTONE[due->?DUE], ?DUE < \dateTime[now].

Also, is \dateTime 'now' calculated only at time of loading? Or during querying/rule execution as well?


Michael Kifer

unread,
Jul 17, 2019, 7:43:15 PM7/17/19
to ErgoAI-Flor...@coherentknowledge.com

look it up in The Primitive Type \dateTime


\dateTime[now->?n]@\basetype.

--
You received this message because you are subscribed to the Google Groups "ErgoAI, Flora-2, and XSB Users Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ErgoAI-Flora2-XSB...@coherentknowledge.com.
To view this discussion on the web visit https://groups.google.com/a/coherentknowledge.com/d/msgid/ErgoAI-Flora2-XSB-forum/5f4256e1-c170-44da-a246-8e4f8f310843%40coherentknowledge.com.

Paul Payne

unread,
Jul 18, 2019, 4:56:00 PM7/18/19
to ErgoAI, Flora-2, and XSB Users Forum
I did, but maybe I'm not smart enough to understand it. :(

On Wednesday, July 17, 2019 at 4:43:15 PM UTC-7, Michael Kifer wrote:

look it up in The Primitive Type \dateTime


\dateTime[now->?n]@\basetype.


On 7/17/19 7:30 PM, Paul Payne wrote:
How does one reference "now"? This doesn't work:

@!{pastMilestone}
past(?MILESTONE) :- ?MILESTONE:Milestone, ?MILESTONE[due->?DUE], ?DUE < \dateTime[now].

Also, is \dateTime 'now' calculated only at time of loading? Or during querying/rule execution as well?


--
You received this message because you are subscribed to the Google Groups "ErgoAI, Flora-2, and XSB Users Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ErgoAI-Flora2-XSB-forum+unsubscribe@coherentknowledge.com.

Marc Hadfield

unread,
Jul 19, 2019, 12:57:04 PM7/19/19
to ErgoAI, Flora-2, and XSB Users Forum

Thanks for this - it was unclear to me that the "@\basetype" needs to be included in these cases.  Is it common practice to always include:
:- importmodule{\basetype}.
?




On Thu, Jul 18, 2019 at 4:56 PM Paul Payne <ppa...@xinova.com> wrote:
I did, but maybe I'm not smart enough to understand it. :(

On Wednesday, July 17, 2019 at 4:43:15 PM UTC-7, Michael Kifer wrote:

look it up in The Primitive Type \dateTime


\dateTime[now->?n]@\basetype.


On 7/17/19 7:30 PM, Paul Payne wrote:
How does one reference "now"? This doesn't work:

@!{pastMilestone}
past(?MILESTONE) :- ?MILESTONE:Milestone, ?MILESTONE[due->?DUE], ?DUE < \dateTime[now].

Also, is \dateTime 'now' calculated only at time of loading? Or during querying/rule execution as well?


--
You received this message because you are subscribed to the Google Groups "ErgoAI, Flora-2, and XSB Users Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ErgoAI-Flora2-XSB...@coherentknowledge.com.

--
You received this message because you are subscribed to the Google Groups "ErgoAI, Flora-2, and XSB Users Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ErgoAI-Flora2-XSB...@coherentknowledge.com.
To view this discussion on the web visit https://groups.google.com/a/coherentknowledge.com/d/msgid/ErgoAI-Flora2-XSB-forum/1d4da852-f7d1-4b1d-9f1b-8eb431a23af6%40coherentknowledge.com.

Michael Kifer

unread,
Jul 19, 2019, 1:05:18 PM7/19/19
to ErgoAI-Flor...@coherentknowledge.com, Marc Hadfield, ErgoAI, Flora-2, and XSB Users Forum
If you include importmodule, you need to be certain the imported method names don't clash with the host methods names. Note that @\btp is an acceptable abbreviation and may be better
--
Sent from my mobile.
Reply all
Reply to author
Forward
0 new messages