Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

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.

(applies-to)rental-unit@weekdays@hours [&…] # exceptions

NotationExplanation
mon@17Monday at 17:00
sat-mon@12-14Saturday, Sunday and Monday from 12:00 to 14:00 (three hours of rental each of these days)
mon,thu@18,21Monday and Thursday at 18:00 and 21:00
u-2,u-3@mon-fri@09-12 # 2023-12-24Rental of u-2 and u-3 Monday to Friday from 9 to 12 except for Christmas Eve
mon-friMonday to Friday with default opening hours (set elsewhere)
(oddweeks)mon@17Monday at 17:00 in odd weeks

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.

NotationExplanation
u-1Applies to the rental unit with id u-1
u-2,u-3Applies to rental units with id u-2 and u-3
Applies to all rental units

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.

NotationExplanation
tue-thuTuesday to Thursday
mon,wedMonday and Wednesday
satSaturday
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.

NotationExplanation
1717:00
09-12From 09:00 to 12:00 inclusive
12,1512:00 and 15:00
Default opening hours

This is an optional part that can be used to specify the week for what follows.

NotationExplanation
(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.

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 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.

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.