The Current Time of Day condition allows you to restrict access based on the time the request is made.
Specify the following details:
Comparison: Specify how the current time of day is compared to the data in the Value field. Select one of the following types:
Comparison: Time: Specifies that you want the values compared as time. Select one of the following:
Greater Than: Requires that the current time is greater than the specified value.
Greater Than or Equal to: Requires that the current time is greater than or equal to the specified value.
Less Than: Requires that the current time is less than the specified value.
Less Than or Equal to: Requires that the current time is less than or equal to the specified value.
In Range: Requires that the current time must fall within the specified range, such as 08:00 and 17:00.
If you specify this type of comparison, you must also specify a time zone. Select either the Local time zone or GMT (Greenwich Mean Time).
Comparison: Regular Expression: Matches: Specifies that you want the values compared as regular expressions. Regular expression matching uses the entire date and time of the server in its matching. Therefore if the value you are matching is 8, the 8 can produce a match for the year (2008), the month (8), the day (8, 18, 28), the hour (8), the minute (8, 18, 28, 38, 48) and the second (8, 18, 28, 38, 48).
If you select this option, you must also specify a mode. Select one or more of the following:
For regular expression syntax information, see the Javadoc for java.util.regex.Pattern.
Value: Specify the second value for the comparison. If you select Data Entry Field as the value type, hours and minutes are specified in the following format:
hour:minute
Hour is a number from 00 to 23, and minute is a number from 00 to 59.
Time can only be specified in a 24-hour clock format. For example, 8 am is 08:00 and 5:30 pm is 17:30.
Other value types are possible. Your policy requirements determine whether they are useful. If you have set up a Liberty User Profile or an LDAP attribute that corresponds to the time of day, you can use this option and select your attribute.
Result on Condition Error: Specify what the condition returns when the comparison of the two values returns an error rather than the results of the comparison. Select either False or True. If you do not want the action applied when an error occurs, select False. If you want the action applied when an error occurs, select True.