Skip to content

Instantly share code, notes, and snippets.

@karmajunkie
Created January 2, 2010 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karmajunkie/267649 to your computer and use it in GitHub Desktop.
Save karmajunkie/267649 to your computer and use it in GitHub Desktop.
1.upto 12 do |mon|
1.upto 31 do |mday|
firsthalf="#{mday.to_s.rjust(2,'0')}#{mon.to_s.rjust(2,'0')}"
puts "#{firsthalf}#{firsthalf.reverse}" if firsthalf.reverse.to_i >=2010 && firsthalf.reverse.to_i <= 2099
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment