Sha256: 43dbd10ebe7c63e6da1848a3160e1dff56a30464fe846dca4237f27a31dd12ee

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 Bytes

Contents

class Time

  ##
  # Formats this Time as an IMAP-style date.

  def imapdate
    strftime '%d-%b-%Y'
  end

  ##
  # 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.
  #--
  # Go Mr. Leatherpants!

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
imap_processor-1.7 lib/net/imap/date.rb
imap_processor-1.6 lib/net/imap/date.rb
imap_processor-1.5 lib/net/imap/date.rb
imap_processor-1.3 lib/net/imap/date.rb
imap_processor-1.2 lib/net/imap/date.rb