Method: CubaApi::Utils#rfc2616

Defined in:
lib/cuba_api/utils.rb

#rfc2616(time = DateTime.now) ⇒ Object



107
108
109
# File 'lib/cuba_api/utils.rb', line 107

def rfc2616( time = DateTime.now )
  time.to_time.utc.rfc2822.sub( /.....$/, 'GMT')
end