Date / Time Slot Comparator

The Date / Time Slot Comparator compares a date property with one of the following time slots:

The comparison is true when the date property is inside the selected time slot.

When you insert it in the decision tree, the Date / Time Slot Comparator component creates two separate branches:

When the component is executed, only one branch is activated depending on the test result.

Use

In a price plan, if you want to apply different prices which vary from one time period to another time period, you may need to compare a date with a time slot. To use the Date / Time Slot Comparator inside your price plan, do the following:

  1. After you add the component, choose the date and the time slot.

  2. Describe the pricing of each decision tree branch by using a Function component.

Example

Within the context of a promotional offer that contains a calling plan, you want to implement a special price of $0.02 per minute for telephone calls that start during the weekend. The standard price is $0.04 per minute. The following table presents the information that you need to set up the Date / Time Slot component inside your price plan:

Data

Settings

Property date

Start date of the phone call

Time slot parameters

Type: Weekly.

From Wednesday at 10:00 PM To Monday at 6:00 AM.

Pricing rules

Price that is applied to the “is in the time slot” branch: $0.02 per minute.

Price that is applied to the “is out of the time slot” branch: $0.04 per minute.

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

Property Name: Provides the list of date properties. Select a date property.

Set the Time Slot parameters: Allows you to compare the date property with a time slot.

Note: The following examples show different formats of time slots:

  • daily: From 05.00 AM To 07.00 AM

  • weekly: From Monday at 05.00 AM To Wednesday at 07.00 AM

  • monthly: From 10 at 05.00 AM To 12 at 07.00 AM

  • yearly: From 22 May at 05.00 AM To 18 June at 07.00 AM