Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/imap_cleanse.rb

Instance Method Summary collapse

Instance Method Details

#imapdateObject

Formats this Time as an IMAP-style date.

RFC 2060 doesn’t specify the format of its times. Unfortunately it is almost but not quite RFC 822 dates.



14
15
16
# File 'lib/imap_cleanse.rb', line 14

def imapdate
  strftime '%d-%b-%Y %H:%M %Z'
end