class Time
Public Instance Methods
imapdate()
click to toggle source
Formats this Time
as an IMAP-style date.
# File lib/net/imap/date.rb, line 7 def imapdate strftime '%d-%b-%Y' end
imapdatetime()
click to toggle source
Formats this Time
as an IMAP-style datetime.
RFC 2060 doesn't specify the format of its times. Unfortunately it is almost but not quite RFC 822 compliant.
# File lib/net/imap/date.rb, line 19 def imapdatetime strftime '%d-%b-%Y %H:%M %Z' end