Skip to content

Instantly share code, notes, and snippets.

@redtettemer
Created August 27, 2010 01:19
Show Gist options
  • Save redtettemer/552580 to your computer and use it in GitHub Desktop.
Save redtettemer/552580 to your computer and use it in GitHub Desktop.
case month
when "Jan"
month = 1
when "Feb"
month = 2
when "Mar"
month = 3
when "Apr"
month = 4
when "May"
month = 5
when "Jun"
month = 6
when "Jul"
month = 7
when "Aug"
month = 8
when "Sep"
month = 9
when "Oct"
month = 10
when "Nov"
month = 11
when "Dec"
month = 12
else
p "Date detection barfed for " + month
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment