CSV parsing with ruby


#1

Greetings,

I am trying to learn how to parse a csv in ruby. In the class example,
the goal is to organize by the date field. Only thing is, I do not
recognize the
format. I think the date fields is encoded. I am new to ruby and have
gotten as far as to read the CSV in terminal. Is there a book or post
that explains the tools used to parse and potentially decode a field.
Here is a sample of the data I am working with:

id date
User1 1309380645
User2 1237178109

Thanks,

Robert


#2

The Ruby Standard Library has a CSV class. Have a look at it. The
library documentation also contains small usage examples.