Operator Scope of Action:
Operator First Added:
Alternatively, use Date.minute.
returns the hour element from the theDate date/time expression, which may simply be a date-type attribute value.
creates a new date based on the theDate expression, but in which the minute is value. theDate is not changed - unless theDate is an attribute and the attribute is re-setting itself:
$MyDateA = minute($MyDate,14) $MyDate is not changed
$MyDate = minute($MyDate,14) $MyDate is changed
Examples. If $MyDate is 4 July 2009 09:30, then
will change $MyDate to 4 July 2009 19:05 whilst leaving $MyDate as 4 July 2009 09:30. However, if the code is self-referring:
will change $MyDate to 4 July 2009 19:05.
Take care using the later self-referring form in a $Rule or agent as it fires every agent update cycle adding 5 minutes each time! Make sure you use a guard agent or conditional query to make the action out of scope after the first application. Or, consider using a Stamp - which only fires once per (manual) application.