Skip to content

Commit

Permalink
Add reference about relative dates to Query Builder POD
Browse files Browse the repository at this point in the history
Add reference about DateTime::Format::Natural to Query Builder POD
with a few examples.
  • Loading branch information
richieri-bps committed Nov 1, 2023
1 parent 464dacd commit d7c3c03
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/query_builder.pod
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,24 @@ To compare LargeContent instead:

CF.IP = CF.IPRange.LargeContent

=item Search tickets by relative dates

RT supports relative dates in searches, so you can search for tickets
that were resolved in the last week, during the last month, as well as
other relative dates.

For example, if you want to search tickets created during the last month,
you can use the following search:

Created >= 'beginning of last month' and Created < 'this month'

Or if you want to search tickets resolved since the last week:

Resolved >= 'last week'

You can check relative date strings that RT supports at
L<https://metacpan.org/pod/DateTime::Format::Natural::Lang::EN> .

=back

=head1 Learn More
Expand Down

0 comments on commit d7c3c03

Please sign in to comment.