Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

SubtractFromDate Analytic

SubtractFromDate Analytic

Use the SubtractFromDate analytic to subtract years, months, days, hours, minutes, or seconds from a given date.
The following table defines the properties of the SubtractFromDate analytic:
Property
Description
Name
The name of the SubtractFromDate analytic. This must be a unique name.
Description
Optional. The description of the analytic.
Type
Select SubtractFromDate Analytic.
Unit
Select years, months, days, hours, minutes, or seconds.
Condition Evaluation Required
Specifies whether the result of the analytic is part of conditional evaluation within a rule. Set to "false" if the result of the analytic can be used only for enrichment. Default is True.
Cache Duration
Time period, in seconds, for which the result of the analytic will be cached.

Example

Create a SubtractFromDate analytic of name "subfrmdate" and choose the units as "years."
The date format must be in Java SimpleDateFormat.
when 1 subDate sd with subfrmdate(sd.datevalue,sd.dateformat,sd.count) as datesub = "12/01/1988" then response with body = “value of date add ${ datesub}”
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
ad.datevalue= 12 /01/2013
ad.dateformat= MM/dd/yyyy*
ad.count=25
Subtracts 25 years from the date.
12/01/1988

0 COMMENTS

We’d like to hear from you!