Created
January 2, 2010 20:12
-
-
Save karmajunkie/267649 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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