Syntax
set the scope state variable variable-name to datetime direction duration granularity1 rounded rounding with granularity2 granularity using time-zone and save save-mode
Parameters
- scope
- One of the following:
- subscriber—Subscribers in the remote SPR.
- pool—Subscriber pool defined in the SPR.
- subscriber_local—Subscribers in the local MPE.
- session—Session variables that have a value as long as the session they are associated with is open.
- policy_evaluation—Policy evaluation variables that last only for the duration of the policy evaluation cycle.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- variable-name
- String.
Note: Any string up to 32 ASCII characters in length if the scope is subscriber_local or session.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- datetime
- One of the following:
- A policy variable.
- now (default)—The local date-time.
- A date-time in the format: yyyy-mm-ddThh:mm:ss+UTCoffset.
Note: Enter the date-time directly into the field or click the calendar icon for assistance:
- Date—Select the date from the calendar interface.
- Time—Select hh:mm:ss.
- UTC Offset—Select number of hours before or after UTC time to start.
- now—Select for the local date-time.
- Time only—Select to use the time only.
- A JavaScript code snippet—Enter a JavaScript statement that evaluates to a date-time in the format: yyyy-mm-ddThh:mm:ss+UTCoffset. Click Evaluate as expression to bypass date-time format validation.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- direction
- One of the following, indicating a time offset in the future or past:
- duration
- Positive integer.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- granularity1
- The offset is expressed in this granularity:
- days (default)
- months
- hours
- minutes
- rounding
- One of the following, indicating rounding up or down:
- granularity2
- The calculated date-time is expressed in this granularity:
- same (default)
- months
- days
- hours
- minutes
- time-zone
- One of the following:
- CONFIGURED LOCAL TIME (default)—Calculate the time from the location configured for this MPE device
- SYSTEM LOCAL TIME—Calculate the time from the location of this MPE device
- USER LOCAL TIME—Calculate the time from the location configured for the user equipment's location
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- save-mode
- One of the following:
- always (default)
- unless rejected
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
Description
Sets and saves a state date-time variable to either the current date and time or another date-time and an offset. If time-zone information is available from the user equipment, time can be calculated from either the MPE device or the location of the user equipment. You can specify that the variable is not saved if the policy rejects the message.