Looking at date's man page, I couldn't find a standard way to convert to rfc822 (eg: from unix timestamp). I took a brief look at the spec, but I don't know enough about the subject matter to get the format right. Is there a easy way to convert to rfc822 with standard linux terminal tools?
How to convert to / get RFC822 date in bash/linux?
2.6k views Asked by Robert C. Holland At
1
According to
man 1 date:And it looks like RFC5322:
Short answer use
date -R(and-d @<unix>for the unix timestamp). For example, in my machine just now: