#### Time ranges

This page contains the list of registered time ranges with the interface for creating, removing, or editing them.

A time range can be removed only if it is not used at the moment. Otherwise, in the first place it is necessary to remove all entities (services, tariff plans, accounts, etc.) relying on it.

Below is the list of time range parameters and their meanings:

- ID number (assigned automatically).
- Name of the range.
- Range is the set of time intervals that actually constitute the range.
- Priority is the order of precedence of time ranges in case they overlap (see below). The higher the number in the Priority field, the higher priority the time range has.

The and buttons open the Time range window containing two tabs: Visual and Simple. On the Visual tab a visual editor of time ranges is presented.

Colored cells correspond to the hours included in the range. To include or exclude a single cell, click on it once. With Shift key pressed the selection works in block mode, i.e. encloses the whole block once its opposite angles are marked by two consecutive mouse clicks. With Ctrl key pressed the selection works in intersection mode, i.e. spans onto cells coinciding by one coordinate with the cell being selected, and by the other coordinate with those selected earlier.

The Simple tab presents text interface for setting time ranges. By pressing Add and Remove enter time ranges for whatever days of week you need.

| Visual interface is restricted to hourly precision, i.e. treats each hour as a whole; more accurate timing is possible only within the text interface. Once the fractional hour borders get involved, the visual interface is rendered view-only.

In the Days field you may enter individual days to be included in the range. These days are included as a whole, from 12:00 a.m. till 11:59 p.m. If the list of days and the table of hour ranges are used simultaneously, the time range consists of their union.

| If the two time ranges overlap, the ambiguous time is appropriated to the one with higher priority. In the case of equal priority the outcome is platform-dependent and generally unreliable. Such collisions are to be avoided.