Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/imap_cleanse.rb
Instance Method Summary collapse
-
#imapdate ⇒ Object
Formats this Time as an IMAP-style date.
Instance Method Details
#imapdate ⇒ Object
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 |