Duration | Definition | start | end (exclusive) |
---|---|---|---|
0h | this hour | 2016-06-26 01:00:00-0700 | 2016-06-26 02:00:00-0700 |
0d | today | 2016-06-26 00:00:00-0700 | 2016-06-27 00:00:00-0700 |
0M | this month | 2016-06-01 00:00:00-0700 | 2016-07-01 00:00:00-0700 |
-1h | last hour | 2016-06-26 00:00:00-0700 | 2016-06-26 01:00:00-0700 |
-1h/now | last hour to now | 2016-06-26 00:00:00-0700 | 2016-06-26 01:23:45-0700 |
-60m/2017-01-23 01:23:45 | last 60 minutes to now | 2017-01-23 00:23:00-0700 | 2017-01-23 01:23:45-0700 |
-1d | last day | 2016-06-25 00:00:00-0700 | 2016-06-26 00:00:00-0700 |
-7d | last 7 days | 2016-06-19 00:00:00-0700 | 2016-06-26 00:00:00-0700 |
-7d/now | last 7 days to now | 2016-06-10 00:00:00-0700 | 2016-06-26 01:23:45-0700 |
-3d/2017-04-07 | last 3 days from a given offset | 2017-04-04 00:00:00-0700 | 2017-04-07 00:00:00-0700 |
+7d | next 7 days (including today) | 2016-06-26 00:00:00-0700 | 2016-07-03 00:00:00-0700 |
+7d/now | next 7 days from now | 2016-06-26 01:23:45-0700 | 2016-07-03 00:00:00-0700 |
-1w | last week | 2016-06-13 00:00:00-0700 | 2016-06-20 00:00:00-0700 |
-1M | last month | 2016-05-01 00:00:00-0700 | 2016-06-01 00:00:00-0700 |
-1y | last year | 2015-01-01 00:00:00-0700 | 2016-01-01 00:00:00-0700 |
-1h/2017-01-23 01:00:00 | last hour to a given offset | 2017-01-23 00:00:00-0700 | 2017-01-23 01:00:00-0700 |
-1h/2017-01-23 01:23:45 | last hour to a given offset | 2017-01-23 00:00:00-0700 | 2017-01-23 01:23:45-0700 |
Last active
August 14, 2018 13:53
-
-
Save takezoe/3bdac9b3f3297e04a199e0fca2cf1f1f to your computer and use it in GitHub Desktop.
Relative time range expression supported in JTimeWindow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment