Destructively sets the date of the mail object with the passed Time instance, returns a Time instance set to the date/time of the mail
Example:
now = Time.now mail.date = now mail.date #=> Sat Nov 03 18:47:50 +1100 2007 mail.date.class #=> Time
Source Code
# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 132 def date=( time ) if time store 'Date', time2str(time) else @header.delete 'date' end time end
<code/>and<pre/>for code samples.