End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Date#rfc2822
d.rfc2822 → string
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_rfc2822(VALUE self)
{
return strftimev("%a, %-d %b %Y %T %z", self, set_tmx);
}
This method is equivalent to strftime(‘%a, %-d %b %Y %T %z’).