Skip to content

Instantly share code, notes, and snippets.

@yangxing-star
Created November 16, 2015 08:37
Show Gist options
  • Save yangxing-star/f067f6c8ec8fecff2968 to your computer and use it in GitHub Desktop.
Save yangxing-star/f067f6c8ec8fecff2968 to your computer and use it in GitHub Desktop.
(Date.parse('2015-10-01').to_date..Date.parse('2015-11-16').to_date).each do |date|
1.upto(24).each do |i|
hour = format("%02d", i)
d = "#{date.to_s(:number)}#{hour}"
result = c.message_history_delete(d)
puts "#{date} #{result}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment