add 'week' to the list of duration literal units in doc

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-05-06 14:34:02 +02:00
parent 43f9d20773
commit 3d09ac0fce
1 changed files with 6 additions and 1 deletions

View File

@ -147,7 +147,12 @@ For conceptual reasons, the two kinds of duration cannot be cleanly composed.
Literal duration expressions are of form `n unit`, for example `1 day` or `10 year` or `100 nanosecond`.
The unit may be: `day`, `month`, `quarter`, `year`, `second`, `minute`, `hour`, or `nanosecond`.
[source, hql]
----
select start, end, start - 30 minute from Event
----
The unit may be: `day`, `week`, `month`, `quarter`, `year`, `second`, `minute`, `hour`, or `nanosecond`.
[NOTE]
====