time interval
The time interval
type represents an interval of time. They have a resolution of 1 microsecond.
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 |
Creation
Returns the time interval corresponding to how long a locked account remains locked before it is automatically unlocked. This may not exist for locked accounts that remain locked until an administrator unlocks them. For more information, see the MSDN article on NetUserModalsGet.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the time interval between the end of the valid logon time and the time when the user must log off the network. A value of zero indicates that the user must log off immediately as soon as the valid logon time expires. This will not exist if the user is never forced to log off. For more information, see the MSDN article on NetUserModalsGet.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the least time interval that can be represented on this machine.
- Q: least time interval
- A: -106751991 days, 04:00:54.775808
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 |
The sample interval is the time between consecutive samples on a single computer. The mean sample interval is the integral over time of the sum over computers of the sample interval divided by the integral over time of the number of reporting computers. This is the inverse of the mean sample rate.
Version | Platforms |
---|---|
8.0.584.0 | Session |
Returns the upper limit of a random time delay that will be added to the trigger start time. The format is P<days>DT<hours>H<minutes>M<seconds>S. For example, P3DT6H represents a 3 day, 6 hour maximum, and the random time will be less than or equal to that value.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the upper limit of a random time delay that will be added to the monthly day-of-week trigger start time. The format is P<days>DT<hours>H<minutes>M<seconds>S. For example, P3DT6H represents a 3 day, 6 hour maximum, and the random time will be less than or equal to that value.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the <time interval> object that represents the amount of time to wait before retrying after a failure. If the action is not set to delay for a time interval before retrying then this will return a "non-existent" error.
Version | Platforms |
---|---|
8.0.584.0 | Session |
Returns the round-trip time (RTT) of the TCP socket connections in the "ESTABLISHED" state. Such time is stored in a time interval
object and expressed in the "hh.mm.ss.us" format.
When the rtt property is called on a UDP socket, or on a TCP socket whose connection state is not "ESTABLISHED", the "Singular expression refers to non-unique object" error is thrown by the inspector.
The following example shows the RTTs of the TCP socket connections in the "ESTABLISHED" state.
- Q: rtts of sockets of network
- A: 00:00:00.000010
- A: 00:00:00.000530
- A: 00:00:00.000013
- A: 00:00:00.000052
The following example shows how RTT may be used together with the id
and name
property of the process
inspector.
- Q: ((ids of it, names of it) of processes of it, rtts of it) of sockets whose (tcp of it = True AND tcp state of it as string = "ESTABLISHED") of network
- A: (3648, sqlserv.exe), 00:00:00.000010
- A: (3152, BuilService.exe), 00:00:00.000530
- A: (2924, FillDB.exe), 00:00:00.000013
- A: (3060, firefox.exe), 00:00:00.000052
Version | Platforms |
---|---|
11.0.3.0 | Windows |
Returns a time interval that represents the elapsed time since the operating system was last booted.
Note: Depending on the computer, this may not include time spent in hibernation.
- Q: uptime of operating system
- A: 12 days, 18:10:01.642793
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
Casts
Operators
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 |
Adds a time interval (days, hours, minutes, seconds) to a date to create a new date.Example: current date + time interval "7 days" - Returns the date a week from now.
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 |