Duration Type

Represents a length of time
This type is available in case you want to build your own Duration properties. In most cases, though, you should just use the built-in Duration Property, which is good enough for most purposes.
Occasionally, you may want to specify a literal Duration in a QL expression. You do this by calling Duration Type as a function with two parameters: the number of units, and the unit. So for example, to add two months to today's date, you would say:
_today -> _plus(Duration Type(2, months))
Note that those are two distinct parameters -- there must be a comma between them. Also, only the plural forms of the units are allowed, so one month is still Duration Type(1, months).
The available units are "years", "months", "weeks" and "days". (Eventually we will also allow hours, minutes and seconds, but those are not implemented yet.)

Properties that are based on Duration Type