$d
The current date in Unix ctime(3) format All versions
The $d
macro holds
the current date and time. $d
is given its value at the same time
$b
is defined.
The only difference between the two is that $b
contains the date in
RFC822 format, whereas $d
contains the same date in Unix
ctime(3) format.
The form of a date in ctime(3) format is generally:[318]
Fri Jan 13 01:03:52 2006\n
When sendmail stores this form of
date into $d
, it
converts the trailing newline (the \n
) into a zero, thus
stripping the newline from the date.
[318] * The format produced by ctime(3) varies depending on your location.
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.