time range
The <time range> inspectors provide tools for dealing and calculating with time-range types, which are of the form 'time to time', such as Tue, 18 Apr 2006 16:46:07 -0400 to Wed, 19 Apr 2006 16:46:07 -0400
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
Creation
Concatenates a time interval with a time, returning a time range of the form time1 to time2.Example: time interval "01:00:00" & now - Returns a one-hour time range ending now, eg. Fri, 07 Apr 2006 12:36:10 -0400 to Fri, 07 Apr 2006 13:36:10 -0400.
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
| 9.5.13.130 | Raspbian |
Concatenates two times into a time range, with the earliest date first and the latest date last.Example: time "Sat, 01 Jan 2000 00:00:00 -0400" & now - Returns a time range from the beginning of the millennia to now, eg:Sat, 01 Jan 2000 00:00:00 -0400 to Sat, 08 Apr 2006 20:39:51 -0400.
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
| 9.5.13.130 | Raspbian |
Properties
Returns a new time range, starting from the specified time and continuing through the end of the original range. The time must be within the range, or an error will result.
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
| 9.5.13.130 | Raspbian |
Returns a new time range, starting from the original time in the specified range and continuting to the specified time. The time must be within the range, or an error will result.
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
| 9.5.13.130 | Raspbian |
Casts
Operators
Returns the intersection of the two specified time ranges, if one exists.Example: (week & now) * (day & now) - Returns a one-day time range (from yesterday to today).
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
| 9.5.13.130 | Raspbian |
Returns the smallest range that contains both ot the specified ranges (same as <time range> & <time range>).Example: (week & now) + (day & now) - Returns a one-week time range (from a week ago to today).
| Version | Platforms |
|---|---|
| 8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
| 8.1.535.0 | Debian, Ubuntu |
| 9.5.13.130 | Raspbian |