Time Range Expressions
The time range for IN operator understands both relative time and absolute time. Absolute time is the same as in BETWEEN operator.
Relative time is defined as: <sign><number><unit>, for example: -5d means 5 days ago.
Note: All dates and times are defined in the local time zone of the machine where the system is installed and it is not based on the browser time zone.
The following time units are available:
The supported timestamp formats are:
- Any day of the week; for example, MON, TUE, WED, THU, FRI, SAT, SUN
- NOW specifies up to the current time
- Today specifies as the end of the day (23:59:59)
- yyyy-MM-dd HH:mm:ss, {d yyyy-MM-dd HH:mm:ss}, {t yyyy-MM-dd HH:mm:ss}, or {ts yyyy-
- MM-dd HH:mm:ss}
- MM/dd/yyyy HH:mm:ss
- BETWEEN and IN support dates (yyyy-MM-dd or MM/dd/yyyy). The interpretation depends on whether it is used as beginning or end of time period. When used in beginning it is equivalent to yyyy-MM-dd 00:00:00; when used at the end - yyyy-MM-dd 23:59:59.
Examples
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.