date
The date
objects are the various inspectors that access the date types.
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
Converts the given string into a date. The string should be of the form 'Day Month Year' and the returned date will be of the form 'Day of week, Day Month Year'.
- Q: date "11 Mar 1984"
- A: Sun, 11 Mar 1984
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 |
Finds the specific date corresponding to the first day of the week (eg. Friday) for a given month and year.
- Q: first (monday) of april of 2020
- A: Mon, 06 Apr 2020
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 |
Finds the date corresponding to the first Friday of any given month and year.
- Q: first friday of april of 2020
- A: Fri, 03 Apr 2020
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 |
This inspector returns the date in the format that is displayed on the BigFix Console. This inspector applies only to Fixlets whose headers contain a date.
- Q: ( normalized date of header "X-Fixlet-source-release-date" of it) of fixlets of sites whose (name of it = ("bug68508 custom site"))
- A: Thu, 06 Oct 2016
- T: 5850
Version | Platforms |
---|---|
9.5.4.38 | Windows |
Properties
Returns the minimum and maximum values of the list of dates.
- Q: extrema of (march 11 of 1984; january 27 of 1970; august 18 of 2042)
- A: ( Tue, 27 Jan 1970 ), ( Mon, 18 Aug 2042 )
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 maximum value from a list of dates.
- Q: maximum of (march 11 of 1984; january 27 of 1970; august 18 of 2042)
- A: Mon, 18 Aug 2042
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 minimum value from a list of dates.
- Q: minimum of (march 11 of 1984; january 27 of 1970; august 18 of 2042)
- A: Tue, 27 Jan 1970
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 unique values and counts of a list of dates, removing duplicates and sorting by value.
- Q: unique values of (march 11 of 1984; march 11 of 1984; january 27 of 1970; august 18 of 2042)
- A: Tue, 27 Jan 1970
- A: Sun, 11 Mar 1984
- A: Mon, 18 Aug 2042
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
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 |