change_window::change_window
: Provides change_window function that allows you to check current time against change windowchange_window::merge_change_windows
: Creates complex change windows by merging a series of windows together
The change_window::apply class.
The following parameters are available in the change_window::apply
defined type:
Data type: Any
An array of change_window names to be merged.
Data type: Any
An array of classes to be applied when within the change_window.
Type: Ruby 4.x API
Provides change_window function that allows you to check current time against change window
change_window::change_window(String $timezone, String $window_type, Hash $window_wday, Hash $window_time, Optional[Array] $window_week_val, Optional[Array] $window_month_val, Optional[Array] $time)
The change_window::change_window function.
Returns: String
Returns true or false as string if the time is within the change window
Data type: String
the timezone offset to use when timestamp is generated for comparing to change window
Data type: String
type of window, either 'per_day' or 'window'
Data type: Hash
containing start and end days of week for the change window
Data type: Hash
containing start and end times of day for the change window
Data type: Array
[Optional] list of weeks in month for the change window
Data type: Array
[Optional] list of months in year for the change window
Data type: Optional[Array]
[Optional] array representing a fixed time to test against
Data type: Optional[Array]
Data type: Optional[Array]
Type: Ruby 4.x API
Creates complex change windows by merging a series of windows together
The change_window::merge_change_windows function.
Returns: String
Returns true or false as string if the time is within the merged change window
Data type: Array
a list of change windows to merge