@@ -117,8 +117,35 @@ not set. For example, the following searches on the issues:
117117Date properties
118118~~~~~~~~~~~~~~~
119119
120- Some fields in the search page (e.g. "Activity" or "Creation date") hold
121- dates. A plain date entered as a search field will match that date
120+ Date-and-time stamps are specified with the date in
121+ international standard format (``yyyy-mm-dd``) joined to the time
122+ (``hh:mm:ss``) by a period ``.``. Dates in this form can be easily
123+ compared and are fairly readable when printed. An example of a valid
124+ stamp is ``2000-06-24.13:03:59``. We'll call this the "full date
125+ format". When Timestamp objects are printed as strings, they appear in
126+ the full date format.
127+
128+ For user input, some partial forms are also permitted: the whole time or
129+ just the seconds may be omitted; and the whole date may be omitted or
130+ just the year may be omitted. If the time is given, the time is
131+ interpreted in the user's local time zone. The Date constructor takes
132+ care of these conversions. In the following examples, suppose that
133+ ``yyyy`` is the current year, ``mm`` is the current month, and ``dd`` is
134+ the current day of the month.
135+
136+ - "2000-04-17" means <Date 2000-04-17.00:00:00>
137+ - "01-25" means <Date yyyy-01-25.00:00:00>
138+ - "2000-04-17.03:45" means <Date 2000-04-17.08:45:00>
139+ - "08-13.22:13" means <Date yyyy-08-14.03:13:00>
140+ - "11-07.09:32:43" means <Date yyyy-11-07.14:32:43>
141+ - "14:25" means
142+ - <Date yyyy-mm-dd.19:25:00>
143+ - "8:47:11" means
144+ - <Date yyyy-mm-dd.13:47:11>
145+ - the special date "." means "right now"
146+
147+
148+ When searching, a plain date entered as a search field will match that date
122149exactly in the database. We may also accept ranges of dates. You can
123150specify range of dates in one of two formats:
124151
@@ -138,43 +165,45 @@ Either first or second ``<value>`` can be omitted in both syntaxes.
138165For example, if you enter string "from 9:00" to "Creation date" field,
139166roundup will find all issues, that were created today since 9 AM.
140167
168+ The ``<value>`` may also be an interval, as described in the next section.
141169Searching of "-2m; -1m" on activity field gives you issues which were
142170active between period of time since 2 months up-till month ago.
143171
144- Other possible examples (consider local time is Sat Mar 8 22:07:48
145- 2003)::
146-
147- >>> Range("from 2-12 to 4-2")
148- <Range from 2003-02-12.00:00:00 to 2003-04-02.00:00:00>
149-
150- >>> Range("FROM 18:00 TO +2m")
151- <Range from 2003-03-08.18:00:00 to 2003-05-08.20:07:48>
152-
153- >>> Range("12:00;")
154- <Range from 2003-03-08.12:00:00 to None>
155-
156- >>> Range("tO +3d")
157- <Range from None to 2003-03-11.20:07:48>
158-
159- >>> Range("2002-11-10; 2002-12-12")
160- <Range from 2002-11-10.00:00:00 to 2002-12-12.00:00:00>
161-
162- >>> Range("; 20:00 +1d")
163- <Range from None to 2003-03-09.20:00:00>
164-
165- >>> Range("2003")
166- <Range from 2003-01-01.00:00:00 to 2003-12-31.23:59:59>
167-
168- >>> Range("2003-04")
169- <Range from 2003-04-01.00:00:00 to 2003-04-30.23:59:59>
172+ Other possible examples (consider local time is 2003-03-08.22:07:48)::
173+
174+ - "from 2-12 to 4-2" means
175+ <Range from 2003-02-12.00:00:00 to 2003-04-02.00:00:00>
176+ - "FROM 18:00 TO +2m" means
177+ <Range from 2003-03-08.18:00:00 to 2003-05-08.20:07:48>
178+ - "12:00;" means
179+ <Range from 2003-03-08.12:00:00 to None>
180+ - "tO +3d" means
181+ <Range from None to 2003-03-11.20:07:48>
182+ - "2002-11-10; 2002-12-12" means
183+ <Range from 2002-11-10.00:00:00 to 2002-12-12.00:00:00>
184+ - "; 20:00 +1d" means
185+ <Range from None to 2003-03-09.20:00:00>
186+ - "2003" means
187+ <Range from 2003-01-01.00:00:00 to 2003-12-31.23:59:59>
188+ - "2003-04" means
189+ <Range from 2003-04-01.00:00:00 to 2003-04-30.23:59:59>
170190
171191
172192Interval properties
173193~~~~~~~~~~~~~~~~~~~
174194
175- XXX explain...
176-
177- When searching on interval properties use the same syntax as for dates.
195+ Date intervals are specified using the suffixes "y", "m", and "d". The
196+ suffix "w" (for "week") means 7 days. Time intervals are specified in
197+ hh:mm:ss format (the seconds may be omitted, but the hours and minutes
198+ may not).
199+
200+ - "3y" means three years
201+ - "2y 1m" means two years and one month
202+ - "1m 25d" means one month and 25 days
203+ - "2w 3d" means two weeks and three days
204+ - "1d 2:50" means one day, two hours, and 50 minutes
205+ - "14:00" means 14 hours
206+ - "0:04:33" means four minutes and 33 seconds
178207
179208
180209Simple support for collision detection
0 commit comments