Generate a brief date description.
:gbbopen-tools (home package is
Arguments and values
|universal-time|| A Universal Time (default is |
|time-zone|| A time zone (default is |
|month-precedes-date|| A generalized boolean (default is
|year-first|| A generalized boolean (default is
|include-year|| A generalized boolean (default is |
|destination|| Either |
|result|| A string or |
If destination is non-
nil; otherwise, a string.
A 12-character description is generated (6 characters, if
If universal-time is not supplied or is
nil, the current time
(as returned by
If time-zone is not supplied or is
nil, it defaults to the current
time zone adjusted for daylight saving time. If
If month-precedes-date is true, the month is presented in front of the date; otherwise the date precedes the month.
If year-first is supplied and is non-
nil, the year is presented in
front of the month and date; otherwise the year follows the month and date.
If include-year is supplied and is non-
nil, the year is included in
the presented time.
Display the current date (with and without the year):
> (brief-date) "Feb 16, 2008" > (brief-date (get-universal-time) :include-year nil) "Feb 16" >Display the date 10 days ago:
> (brief-date (- (get-universal-time) (* 60 60 24 10))) "Feb 6, 2008" >
This function is loaded with the
The GBBopen Project