Chapter 3: Condition Reference
107
month=
Tests if the month is in the specified range or an exact match. By default, the ProxySG appliance’s date
and time zone are used to determine the current month. To specify the UTC time zone, use the form
month.utc=. The numeric pattern used to test the month condition can contain no whitespace.
Syntax
month[.utc]={[first_month]..[last_month]|exact_month}
where:
first_month—An integer from 1 to 12, where 1 specifies January and 12 specifies December,
specifying the first month that tests true. If left blank, January (month 1) is assumed.
last_month—An integer from 1 to 12, where 1 specifies January and 12 specifies December,
specifying the last month that tests true. If left blank, December (month 12) is assumed.
exact_month—An integer from 1 to 12, where 1 specifies January and 12 specifies December,
indicating the month that tests true.
Note: To test against an inverted range, such as a range that crosses from one year into the next, the
following shorthand expression is available. While month=(..6|9..) specifies September
through June, the policy language also recognizes month=9..6 as equivalent.
Layer and Transaction Notes
Use in all layers.
Using time-related conditions to control caching behavior in a <Cache> layer may cause thrashing
of the cached objects.
Examples
; Tests for the year-end holiday season.
define condition year_end_holidays
month=12 day=25..
month=1 day=1
end_condition year_end_holidays
See Also
Conditions: date[.utc]=, day=, hour=, minute=, time=, weekday=, year=