Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Date#asctime

d.asctime → string

Returns a string in asctime(3) format (but without “\n\0” at the end). This method is equivalent to strftime(‘%c’).

See also asctime(3) or ctime(3).

See also #amjd #as_json #ajd #ctime also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0