time
A <time> object is used to identify a point in time. Time objects are used to represent important properties of objects such as the modification time of a file. You can create time objects from literal strings. The format of the string is defined by the MIME standard. The difference between two Time objects may be calculated by subtracting them and yields time intervals. Time intervals may be added or subtracted from time objects to obtain time objects.
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
Shorthand for 'now of registration server'. When the client registers with the server, the server passes its current time back to the client. The client starts a stop watch at that time. The apparent registration server time is the time the server passed back to the client, plus the elapsed time on the stop watch.
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 |
Depending on the type of the BES site, this inspector returns the creation date:External and Master sites: Does not exist (added in version 7.0). Operator sites: The <moment> when the operator was created (added in version 7.0). Custom sites: The <moment> when the site was created.
Version | Platforms |
---|---|
8.0.584.0 | Session |
The date and time of creation of the specified file or folder. This corresponds to what is shown in the "Get Info" box.Example: creation time of file "System" of System Folder > time "3 jan 1998 00:00+0000" - Returns True
if the creation time of the system file is newer than the specified date.
Version | Platforms |
---|---|
8.0.584.0 | Mac, Windows |
Returns the date the custom site (specified by <string>) was last subscribed or unsubscribed. It is used internally by BES to manage custom site subscriptions.
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 |
Get, from a dictionary, a date keyed by the specified string.Example: date "date" of dictionary "Timer" of dictionary "SUCheckSchedulerTag" of dictionary "com.apple.SoftwareUpdate" of dictionary "AbsoluteSchedule" of dictionary of file "com.apple.scheduler.plist" of preferences folder - Returns the date of the specified dictionary.
Version | Platforms |
---|---|
8.0.584.0 | Mac |
Get, from a preference, a date keyed by the specified string.Example: date "date" of dictionary "Timer" of dictionary "SUCheckSchedulerTag" of dictionary "com.apple.SoftwareUpdate" of dictionary "AbsoluteSchedule" of preference "com.apple.scheduler" - Returns the date of the specified dictionary.
Version | Platforms |
---|---|
8.0.584.0 | Mac |
Returns the time when the action finished running on the specified clients. The format of the string is defined by the MIME standard. If the action has not yet completed the inspector returns: "Singular expression refers to nonexistent object.".
Version | Platforms |
---|---|
9.5.7.90 | Session |
Returns the date on which the certificate first becomes valid. This is useful for examining encryption certificates, where the 'invalid before date' is the time when the encryption credentials were generated.
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 last time this specified application was started.Example: last start time of application usage summary "winword.exe" - Returns the date and time Word was last started.
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 |
Returns the date and time of latest modification of the file.
- Q: modification time of file "/etc/passwd"
- A: Fri, 14 Aug 2015 21:04:58 +0000
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 |
Returns the time corresponding to the modification time of the specified symlink, not the file it points to.Example: modification time of symlink "/example/link" - Returns the time corresponding to the modification time of the given symlink, not the file it points to.Example: modification time of file "/example/link" - Returns the time corresponding to the file object that the symlink is pointing to.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the time when the action started on the specified clients. The format of the string is defined by the MIME standard. If the action has not yet started the inspector returns: "Singular expression refers to nonexistent object.".
Version | Platforms |
---|---|
9.5.7.90 | Session |
If the data stored in the value is a string in MIME compliant date format, this property will return a time object. If the data stored is a binary value and is 16 or more bytes in length, its first 16 bytes are interpreted as a SYSTEMTIME and the corresponding time object is returned. See time.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Properties
Casts
Returns a string in MIME format of the given time object. The format is: ddd, DD mmm YYYY HH:MM:SS sZZZZ. The string is formatted using the local time zone.
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 string in MIME format of the given time object. The format is:ddd, DD mmm YYYY HH:MM:SS +0000The string is formatted using the universal time zone.
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 |
Operators
Takes a time and embeds it into the format specification.Example: format "Today's date is {0}." + now - Returns: Today's date is 9/27/2010 3:40:27 PM.
Version | Platforms |
---|---|
8.0.584.0 | Session, Windows |
9.0.777.0 | AIX, Debian, HP-UX, Red Hat, SUSE, Solaris, Ubuntu |
9.1.1065.0 | Mac |
9.5.13.130 | Raspbian |
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 |