Time and place
In several places in Velpr you can/must specify which hours, days and for which units the setting applies to. It is especially used in the rental info section.
An example of such a notation is @mon@17, which means Mondays at 17:00.
Format
Section titled “Format”(applies-to)rental-unit@weekdays@hours [&…] # exceptions
Examples
Section titled “Examples”| Notation | Explanation |
|---|---|
| mon@17 | Monday at 17:00 |
| sat-mon@12-14 | Saturday, Sunday and Monday from 12:00 to 14:00 (three hours of rental each of these days) |
| mon,thu@18,21 | Monday and Thursday at 18:00 and 21:00 |
| u-2,u-3@mon-fri@09-12 # 2023-12-24 | Rental of u-2 and u-3 Monday to Friday from 9 to 12 except for Christmas Eve |
| mon-fri | Monday to Friday with default opening hours (set elsewhere) |
| (oddweeks)mon@17 | Monday at 17:00 in odd weeks |
Rental unit
Section titled “Rental unit”This is the id column of the rental unit.
It can be empty to indicate that it applies to all units.
You can specify one unit or several units by writing a comma between them. E.g. u-1,u-2.
| Notation | Explanation |
|---|---|
| u-1 | Applies to the rental unit with id u-1 |
| u-2,u-3 | Applies to rental units with id u-2 and u-3 |
| Applies to all rental units |
Weekdays
Section titled “Weekdays”You can use Norwegian or English, and either the full weekday name or the first three letters of the weekday. E.g. both “Monday” and “Mon” are valid. Case is not distinguished. You can specify multiple weekdays with a comma between them, or a hyphen to specify a range.
| Notation | Explanation |
|---|---|
| tue-thu | Tuesday to Thursday |
| mon,wed | Monday and Wednesday |
| sat | Saturday |
| Days defined as default time |
A number from 0 to 23. This is the start time of the rental. You can specify multiple hours by writing a comma between them, or a hyphen to specify a range.
| Notation | Explanation |
|---|---|
| 17 | 17:00 |
| 09-12 | From 09:00 to 12:00 inclusive |
| 12,15 | 12:00 and 15:00 |
| Default opening hours |
Applies to
Section titled “Applies to”This is an optional part that can be used to specify the week for what follows.
| Notation | Explanation |
|---|---|
| (oddweeks) | Applies only to odd weeks |
| (evenweeks) | Applies only to even weeks |
| (week23) | Applies only to week 23 |
| (u23,u26) | Applies only to week 23 and 26 |
The prefixes uke, u, w and week can all be used to specify a week. E.g. (week23) is the same as (u23).
The prefixes partallsuker, likeuker, like, even, evenweek, evenweeks can be used for even weeks.
The prefixes oddeuker, odd, odde, oddweek and oddweeks can be used for odd weeks.
Repeated expressions
Section titled “Repeated expressions”You can combine several such expressions by writing ’&’ between each expression. E.g.
(oddweeks)@mon@16 & u-1@tue@17
That is, all units on Mondays at 16:00 in odd weeks and rental of unit u-1 on Tuesdays at 17:00.
Exceptions
Section titled “Exceptions”Exceptions are specified with # and followed by a time-and-place unit or a date. The date must be written in the format yyyy-mm-dd. Alternatively, you can also include an hour by ending with :HH.
@mon-sun # 2023-01-06
Exceptions are not tied to a single time-and-place expression and must be at the end of the notation.
Valid from and to
Section titled “Valid from and to”Time-and-place notation is most often used together with two dates that specify in which period the notation is valid. These dates are not part of the notation, but are entered as separate fields in the system.