skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Now
 

Try Corticon Now

Now

SYNTAX

now

DESCRIPTION

Returns the current system date and time when the rule is executed. This DateTime value is assigned the first time now is used in a Decision Service (Rule Set), then remains constant until the Decision Service finishes execution, regardless of how many additional times it is used. This means that every rule in a Rule Set containing now will use the same DateTime value.

USAGE RESTRICTIONS

The Literals row in the table of Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

The following Rulesheet uses now to determine how many hours have elapsed between now and dateTime1 (see .hoursBetween for more details on this operator), and assign a value to string1 based on the result.

SAMPLE RULETEST

A sample Ruletest provides two examples of dateTime1. Assume now is equal to Thursday,March 16, 2006 16:30:00 EST. Input and Output panels are shown below. Notice the variation in DateTime masks (formats).