PING
0.9
Statistical data handling and processing in production environment
|
Returns a formatted timestamp string from the current datetime.
%let dt=datetime_current(stamp=, sep=_);
stamp
: (option) flag setting the returned time stamp to second
(s
), minute (mn
), hour
(h
), day
(d
), month
(mth
) or year
(y
) only; default: not considered; sep
: (option) parameter defining the separator between day and time (see below); default: sep=_
(simple underscore).
dt
: the current datetime formatted in the following way: <day><sep><time>
.
Display the current datetime:
%put Current datetime is: %datetime_current();
or the current year:
%put Current year is: %datetime_current(stamp=year);
Run macro %_example_datetime_current
.