Class: Object

Inherits:
BasicObject
Defined in:
lib/gmail.rb

Instance Method Summary collapse

Instance Method Details

#to_imap_dateObject


12
13
14
15
# File 'lib/gmail.rb', line 12

def to_imap_date
  date = respond_to?(:utc) ? utc.to_s : to_s
  Date.parse(date).strftime("%d-%B-%Y")
end