class Aws::Json::Builder

def timestamp(ref, value)

def timestamp(ref, value)
  case ref['timestampFormat'] || ref.shape['timestampFormat']
  when 'iso8601' then value.utc.iso8601
  when 'rfc822' then value.utc.httpdate
  else
    # rest-json and jsonrpc default to unixTimestamp
    value.to_i
  end
end