format_rfc2822_date

Function format_rfc2822_date 

Source
pub fn format_rfc2822_date<Tz: TimeZone>(date: DateTime<Tz>) -> String
Expand description

Format date as an RFC 2822 date-time.

A year with more than four digits keeps all of them, and a negative year is clamped to 0000. This keeps a corrupt timestamp printable, where chrono’s DateTime::to_rfc2822 would panic instead.